for i in range(int("3.6")):
print(i, end="")
Which is the correct operator for power(x^y)?
What is the output of the following Python command?
print(11 // 2)
What is the output of the given code?
a=2
def add():
b=3
c=a+b
print(c)
add()
What is the value of the expression:
bin(10 - 2) + bin(12^4)
Consider a list l, with elements [1,2,3]. What is the output of l*2.
When a Python function does not explicitly return a value, what is the default value returned?
What will be the output of the following Python code snippet?
a={1:"A",2:"B",3:"C"}
a.setdefault(4,"D")
print(a)
Which of the following statements about variable names in Python is true?