Python Hub
19.9K subscribers
80 photos
6 videos
14 files
207 links
πŸ’¬admin @LinuxTeachπŸ’¬
πŸ‘‡ Free access to πŸ‘‡
1. Python Developer courses and Jobs
2. Machine Learning courses and Jobs
3. Direct Internship opportunities
4. Python free courses
πŸ‘‡ Python Handwritten Notes πŸ‘‡
https://linktr.ee/python.hub
Download Telegram
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
x = ['ab', 'cd']
for i in x: i.upper() print(x)
Anonymous Quiz
14%
[β€˜ab’, β€˜cd’] 
67%
[β€˜AB’, β€˜CD’] 
9%
[None, None] 
10%
none of the mentioned
What is the maximum possible length of an identifier in Python?πŸ€”πŸ–₯️🧠
Anonymous Quiz
25%
79 characters
16%
31 characters
22%
63 characters
36%
none of the mentioned
Which function is called when the following Python program is executed?πŸ€”πŸ–₯️🧠
f = foo()
format(f)
Anonymous Quiz
17%
str()
47%
format()
15%
__str__()
21%
__format__()
What will be the output of the following Python code snippet?πŸ€”πŸ–₯️🧠
x = 'abcd'
for i in range(len(x)): print(x) x = 'a'
Anonymous Quiz
13%
a
35%
abcd abcd abcd abcd
30%
a a a a
21%
none of the mentioned
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
i = 0
while i < 3: print(i) i += 1 else: print(0)
Anonymous Quiz
19%
0 1 2 3 0
35%
0 1 2 0
32%
0 1 2
15%
error
Channel name was changed to Β«Python ScienceΒ»
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
for i in range(int(2.0)):
print(i)
Anonymous Quiz
19%
0.0 1.0
46%
0 1
24%
error
11%
none of the mentioned
My friends, are you a final year student or just graduated?πŸ€”

Join Coding Ninjas pay after placement program. Learn Coding for free & pay only if you get job of Salary Rs. 7-20 Lakh!πŸš€

Take one step ahead to join your dream companies like Amazon, Google & Microsoft!🧠

100% Job Gurantee!😱

Register for freeπŸ‘‡

https://bit.ly/36FOk1q
Is the output of the function abs() the same as that of the function math.fabs()?πŸ€”πŸ–₯️🧠
Anonymous Quiz
39%
sometimes
27%
always
23%
never
10%
none of the mentioned
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
x = "abcdef"
while i in x: print(i, end=" ")
Anonymous Quiz
51%
a b c d e f
18%
abcdef
12%
i i i i i i …
19%
error
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
for i in range(int(float('inf'))):
print (i)
Anonymous Quiz
18%
0.0 0.1 0.2 0.3 …
22%
0 1 2 3 …
15%
0.0 1.0 2.0 3.0 …
45%
none of the mentioned
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
f=lambda x:bool(x%2)
print(f(20), f(21))
Anonymous Quiz
29%
False True
23%
False False
19%
True True
30%
True False
The output of the following codes are the same.πŸ€”πŸ–₯️🧠
[x**2 for x in range(10)] list(map((lambda x:x**2), range(10)))
Anonymous Quiz
77%
True
23%
False
What will be the output of the following Python code?πŸ€”πŸ–₯️🧠
list(map((lambda x:x**2), filter((lambda x:x%2==0), range(10))))
Anonymous Quiz
28%
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
49%
[0, 4, 16, 36, 64]
14%
Error
8%
No output