print(5 + 8 * ((3* 5)-9) /10)
import numpy as np
a = np.array( [2, 3, 4, 5] )
b = np.arange(4)
print(a+b)
def say(message, times = 1):
print(message * times)
say('Hello')
say('World', 5)
def calc(x):
r=2*x**2
return r
print(calc(5))
def printMax(a, b):
if a > b:
print(a, 'is maximum')
elif a == b:
print(a, 'is equal to', b)
else:
print(b, 'is maximum')
printMax(3, 4)
x = 5
while x < 10:
print(x, end='')
x = 50
def func(x):
x = 2
func(x)
print('x is now', x)
def disp(*arg):
for i in arg:
print(i)
disp(name="Rajat", age="20")
def func1():
return “mnp”,22
def fun(a, b=6):
a=a+b
print(a)
fun(5, 4)
from math import pow
print(math.pow(2,3))
x = 4
print(x << 2)
import numpy as np
y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])
print(y.ndim)
print(7//2)
print(-7//2)