x<<2
What is the output of the following code?
x = 824591
print(x^0)
What is the output of the following Python code?
>>>a=round(0.5)
>>>b=round(-0.5)
>>>print(a-b)
To concatenate two strings to a third what statements are applicable?
What will be the output of the following code?
age=10
a=age
c=a*b
d=c%a
print(c)
print(d)
Find the output of the following code:
a = 1
for i in range(6):
a = a + 1
if i == 3:
break
print(a)
What will be the output of the following Python code snippet?
x = [i**+1 for i in range(3)]; print(x);
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
When does the 'ZeroDivisionError' occur in Python?
What will be the output of the following code?
def add(x, y):
return x + y
def sub(x, y):
return x - y
def mul(x, y):
return x * y
print(add(10, 10))
print(sub(10, 5))
print(mul(4, 2))