>>>x=7
>>>eval('x+7')
What is the result of math.fsum([.1 for i in range(20)])?
Find the output of the following code:
lst=[11,22,33,44,55]
print(min(max(lst[1:4]),abs(-40)))
If there is no return statement when defining a function, that function produces a value of:
What is the length of sys.argv?
What are the two main types of functions?
What will be the output of the following Python code?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
What will be the output of the following Python code?
>>> a=[(2,4),(1,2),(3,9)]
>>> a.sort()
>>> a
What is the purpose of the 'send()' method in the Mail class?
Find the output of the following code:
class Student:
def __init__(self, name, ids):
self.name = 'anjali'
self.ids = 8
print(name)
print(ids)
print("Student is present")
a1 = Student('shubham', 18)