>>>a=20
>>>b='20'
>>>print(a+float(b))
Which of these is not a core data type?
In Python, the function min()
is a _____ function.
Find the output of the following code:
import numpy as n
a=n.zeros((3,2))
print(len(a))
What does the None
object represent?
Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
What will be the output of the following Python code?
x = [[0], [1]]
print(len(' '.join(list(map(str, x)))))
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?
import datetime
tday=datetime.date.today()
print(tday)
What will be the output of the following Python code?
matrix = [[1, 2, 3, 4],
[4, 5, 6, 7],
[8, 9, 10, 11],
[12, 13, 14, 15]]
for i in range(0, 4):
print(matrix[i][1], end = " ")