prime number or not in cpp
// Online C++ compiler to run C++ program online #include <iostream> using namespace std; int main() { int num…
// Online C++ compiler to run C++ program online #include <iostream> using namespace std; int main() { int num…
// Online C++ compiler to run C++ program online #include <iostream> using namespace std; int main() { int i …
lis = [ "vishal" , "prasad" , "kale" , "gore" , "rajat" , "s…
def vishalReturn ( str ): return f "This is the best strin here { str } " def addSum ( num1 , num2 )…
1234 1234 1234 1234 #include <iostream> using namespace std; int main(){ int n; int a = 1; cout<<"Ent…
import math print(math.factorial(4)) check import module path in the python import sys print(sys.path) print th…
# enumerate function in the python list_one = ["vishal","sarika","komal","lakhan&q…
File "<string>", line 17, in <module> ERROR! NameError : name 'i' is not defined. Did you…
SyntaxError: invalid syntax num1 = (int)input() ^^^^^ Error code :- num1 = (int)input() Solution …
1) Open power shell using admin access and run following command pip install virtualenv 2) create virtual environment…
std::cout In file included from /tmp/xXGSmzLhdM.cpp:2: /usr/include/c++/11/iostream:61:18: note: 'std::cout' …
2 4 This is the normal text vishal harry carry doremoon cartton Info div developer is and value vishal best is and v…
Error :- Traceback (most recent call last): File "<string>", line 25, in <module> File &quo…
import random items = ['snake','water','gun']; user_point = 0; computer_point = 0; i=0; comput…
// use the labrarey #include <iostream> // using the namespace using namespace std; // ; means end progran lin…
**** **** **** ***** // use the labrarey #include <iostream> // using the namespace using namespace std; // ; m…
// use the labrarey #include <iostream> // using the namespace using namespace std; // ; means end progran lin…
# f - string tutorial a = "Vishal " b = 26 # first method to bind the variable # c = "This is %s "…
char ch; cout<<"Enter a Character: "; cin>>ch; if((ch>='A' && ch…
# python inbuild modules import random random_number = random.random() # print(random_number) l1 = ['asd',…
// use the labrarey #include <iostream> // using the namespace using namespace std; // ; means end progran line …
add = lambda a,b : a+b print(add(12,12))
#traditional way to use sort function .... but in one liner function def minus(a,b): return a-b print(minus(12,10)…
no = int(input("Enter the number")) a = 0 b= 1 c = 0 i = 1 print(a) print(b) while(i<no): c = a+b …
def recrusion_iterate(n): fac = 1 for i in range(n): fac = fac * (i+1) return fac def fun…
def getdate(): import datetime return datetime.datetime.now() def getPatientDailyDetails(name): patient_li…
# global variable l = 6 # global variable def globalandlocal(n): # l = 9 #local variable.... function always get l…