What will be the output of the following code?
Which of the following is the same as math.exp(p)?
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
What will be the output of the following Python code?
True = False
while True:
print(True)
break
Suppose we are using the IDLE or Python interpreter. We want to print the result that is three times the last stored value in the interpreter. What should we do?
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i)
What type of inheritance is illustrated in the following Python code?
class A():
pass
class B():
pass
class C(A,B):
pass
What will be the output of the following Python statement?(python 3.xx)
>>>print(format("Welcome", "10s"), end = '#')
>>>print(format(111, "4d"), end = '#')
>>>print(format(924.656, "3.2f"))
What will be the output of the following Python code?
import re
s = 'abc123 xyz666 lmn-11 def77'
re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s)