What will be the output of the following Python function?
any([2>8, 4>2, 1>2])
Error
True
False
4>2
import math
abs(math.sqrt(25))
-5
5
5.0
sum(2,4,6)
sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
all(3,0,4.2)
0
min(max(False,-3,-4), 2,7)
2
-3
-4
complex(1+2j)
1
2j
1+2j
0j
0+0j
(a%b, a//b)
(a//b, a%b)
(a//b, a*b)
(a/b, a%b)
list(enumerate([2, 3]))
[(1, 2), (2, 3)]
[(0, 2), (1, 3)]
[(2, 3)]
What will be the output of the following Python functions?
x=3
eval('x^2')
9
6
enumerate()
all()
chr()
max()
ord()
min()
any()
reverse(l)
list(reverse[(l)])
reversed(l)
list(reversed(l))
float(' -12345\n')
-12345.0 (5 blank spaces before the number)
-12345.0
-12345.000000000…. (infinite decimal places)
divmod()
float()
hex(15)
f
0xF
0Xf
0xf
ord(‘ ‘)
ord(”)
ord(“”)
len(["hello",2, 4, 6])
4
3
set
list
tuple
string
number of arguments
number of arguments + 1
number of arguments – 1
none of the mentioned