Hello Guys...
Good morning....
Here is the latest Python Notes for Professionals :
Good morning....
Here is the latest Python Notes for Professionals :
What will be the output of the following Python function? π§ π€π₯οΈ
--> min(max(False,-3,-4), 2,7)
--> min(max(False,-3,-4), 2,7)
Anonymous Quiz
10%
-4
20%
-3
17%
2
52%
False
What will be the output of the following Python code?π§ π€π₯οΈ
--> l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
--> l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
Anonymous Quiz
17%
[1, 0, 2, βhelloβ, β, []]
40%
Error
26%
[1, 2, βhelloβ]
16%
[1, 0, 2, 0, βhelloβ, β, []]
What will be the output of the following Python function?π₯οΈπ§ π€
--> len(["hello",2, 4, 6])
--> len(["hello",2, 4, 6])
Anonymous Quiz
7%
6
26%
Error
58%
4
9%
3
What will be the output of the following Python code? π§ π₯οΈπ€
--> print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
--> print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
Anonymous Quiz
24%
Hello (βfooβ, βbinβ) and (βfooβ, βbinβ)
19%
Error
46%
Hello foo and bin
10%
None of the mentioned
Grateful for every day of the last year, and excited for each day ahead.. Wish You A Happy New Year..* Welcome To 2022 *
What will be the output of the following Python code? π€π§ π₯οΈ
--> print("abc. DEF".capitalize())
--> print("abc. DEF".capitalize())
Anonymous Quiz
13%
Abc. def
7%
abc. def
23%
Abc. Def
57%
ABC DEF
What will be the output of the following Python statement?
>>> "a"+"bc"
>>> "a"+"bc"
Anonymous Quiz
3%
bc
91%
abc
2%
b
3%
bca
What will be the output of the following Python code snippet? π₯οΈπ§ π€
z=set('abc$de') 'a' in z
z=set('abc$de') 'a' in z
Anonymous Quiz
29%
error
52%
True
13%
False
6%
None of the above
What will be the output of the following Python code snippet? π₯οΈπ§ π€
for i in [1, 2, 3, 4][::-1]: print (i)
for i in [1, 2, 3, 4][::-1]: print (i)
Anonymous Quiz
70%
4 3 2 1
10%
2 3 1 4
12%
1 2 3 4
8%
None of the above
What is output of the following π§ π₯οΈπ€
--> print(math.pow(3, 2))?
--> print(math.pow(3, 2))?
Anonymous Quiz
61%
9
9%
None
23%
9.0
7%
Error
What is the maximum possible length of an identifier in Python?π§ π₯οΈπ€
Anonymous Quiz
25%
79 characters
19%
31 characters
10%
23 characters
46%
Unlimited
Which of the following Python statements will result in the output: 6? π₯οΈπ§ π€
A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Anonymous Quiz
10%
A[2][1]
50%
A[1][2]
33%
A[2][3]
7%
A[3][2]
Which of the following is correctly evaluated for this function?π€π₯οΈπ§
pow(x,y,z)
pow(x,y,z)
Anonymous Quiz
35%
(x**y) / z
22%
(x / y) * z
32%
(x**y) % z
10%
(x / y) / z