What keyword is used to delete a dictionary in Python?
Which of the following is not a valid data type in Python?
Which of the following expressions is the same as math.exp(x)
?
Which block will be executed whether an exception is thrown or not?
What will be the output of the following code?
def increase():
i = 1
while i < 3:
i = i + 1
print(i)
increase()
What method is used to convert a variable to another data type, such as converting an integer to a float?
def func(x = 1, y = 2):
return x + y, x - y
x, y = func(y = 2, x = 1)
print(x, y)
What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"}
for i in a:
print(i,end=" ")
What is the output of the given code?
tuple=('Abekus','learning')
print(tuple)
tuple=()
print(tuple)