What will be the output of the following Python code?
print('a B'.isalpha())
What will be the output of the following Python code?
>>>t=(1,2,4,3)
>>>t[1:3]
What is the output of the following program : print((1, 2) + (3, 4))
What will be the output of the following Python code?
x = [12, 34]
print(len(''.join(list(map(str, x)))))
What will be the output of the following Python code?
import sys
sys.stderr.write(“hello”)
Set makes use of __________
Dictionary makes use of ____________
What will be the output of the following Python statement?
>>>print('new' 'line')
Fill in the line of the following Python code for calculating the factorial of a number
def fact(num):
if num == 0:
return 1
else:
return _____