What will be the output of the following Python code snippet if x=1?,๐ฅ๏ธ๐ค
x << 2
x << 2
Anonymous Quiz
24%
2
46%
1
25%
4
5%
8
What will be the output of this function?
>> round (4.576)
>> round (4.576)
Anonymous Quiz
25%
4
49%
5
8%
576
18%
4.6
What are the values of the following Python expressions?๐ง ๐ค๐ฅ๏ธ
>> 2**(3**2) >>(2**3)**2 >> 2**3**2
>> 2**(3**2) >>(2**3)**2 >> 2**3**2
Anonymous Quiz
44%
512,64,512
35%
512,512,512
13%
64,512,64
9%
64,64,64
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 *