What is the output of the program?
math.fact(6)
What is the output of the following code?
a = repr("Hello")
print(a)
Which of the following data structures in Python has a key-value pair?
import time
time.asctime()
What will be the output of the following Python code?
t[5]
Which type of programming does python support?
Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?
Which are the advantages of functions in python?
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
What is the base condition of the recursive function fact(n)
shown below?
def fact(n):
if n==1:
return 1
else:
return n*fact(n-1)
print(fact(4))