Python Hub
20K 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
Hello Guys...
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)
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))
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])
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')))
Anonymous Quiz
24%
Hello (β€˜foo’, β€˜bin’) and (β€˜foo’, β€˜bin’)
19%
Error
46%
Hello foo and bin
10%
None of the mentioned
Happy New year πŸŽ‰friends
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())
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"
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
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)
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))?
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]]
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)
Anonymous Quiz
35%
(x**y) / z
22%
(x / y) * z
32%
(x**y) % z
10%
(x / y) / z