Q31. Write the output of the following:
def hello():
print([ ])
print("Hello")
hello()
Q32. Write the output of the following:
def H():
print("HHH")
print("H"*4)
print("HH")
H()
Q33. Write the output of the following:
i = 8
j = 9
x = -2
i = i + (j-2)
x = i + j
print(x)
j = j**2
print(j)
Q34. Write the output of the following:
a=20
b=15
c="A"
print(c*3,str(a)+str(b))
Q35. Write the output of the following :
print(1,2,3,4,sep=',' ,end = "$#$")
Q36. Write the output of the following :
print("CS","IP","LEARNING","HUB",sep="9")
Q37. Write the output of the following:
print(2+3,5 > 9,str(5)+"A")
Q38. Write the output of the following :
for i in ("ABCDE"):
print(i+i)
if i=='C':
pass
Q39. Write the output of the following:
for i in ("boy"):
print(ord(i)+3)
Q40. Write the output of the following:
print(34 + 8 **2 - 80//16)