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 snippet?🤔🖥️🧠
for i in ''.join(reversed(list('abcd'))):
print (i)
Anonymous Quiz
17%
a b c d
56%
d c b a
18%
error
9%
none of the mentioned
What will be the output of the following Python code snippet?🤔🖥️🧠
d = {"john":40, "peter":45}
Anonymous Quiz
17%
“john”, 40, 45, and “peter”
22%
“john” and “peter”
29%
d = (40:”john”, 45:”peter”)
32%
40 and 45
What will be the output of the following Python code?🤔🖥️🧠
print("ab\tcd\tef".expandtabs())
Anonymous Quiz
55%
ab  cd  ef
14%
abcdef
19%
ab\tcd\tef
13%
ab cd ef
What will be the output of the following Python code?🤔🖥️🧠
print("ab\tcd\tef".expandtabs('+'))
Anonymous Quiz
29%
ab+cd+ef
44%
ab++++++++cd++++++++ef
17%
ab cd ef
9%
none of the mentioned
What is the output when we execute list(“hello”)?🤔🖥️🧠
Anonymous Quiz
58%
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’] 
39%
[‘hello’]
2%
[‘llo’] 
1%
[‘olleh’] 
What is the output of print(k) in the following Python code snippet?🤔🖥️🧠
k = [print(i) for i in my_string if i not in "aeiou"]
print(k)
Anonymous Quiz
50%
all characters of my_string that aren’t vowels
25%
a list of None
17%
list of Trues
9%
list of Falses
What will be the output of the following Python program?🤔🖥️🧠
def addItem(listParam):
listParam += [1]  mylist = [1, 2, 3, 4] addItem(mylist) print(len(mylist)
Anonymous Quiz
61%
5
23%
8
9%
2
7%
1
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?🤔🖥️🧠
Anonymous Quiz
66%
5
19%
4
8%
None
7%
Error
Channel name was changed to «Python Hub»
Hello guys 👋, I am think to start uploading python project tutorials on my YouTube channel 😀.

So subscribe it for future Projects
👇👇👇

https://youtu.be/mJ-UNGeCuSg

Thank you 🙏😁
What will be the output of the following Python code snippet?🤔🖥️🧠
X=”hi”
print(“05d”%X)
Anonymous Quiz
44%
00000hi
16%
000hi
8%
hi000
32%
error
What will be the output of the following Python code snippet?🤔🖥️🧠
X=”san-foundry”
print(“%56s”,X)
Anonymous Quiz
40%
56 blank spaces before san-foundry
21%
56 blank spaces before san and foundry
16%
56 blank spaces after san-foundry
22%
no change
Forwarded from PythonHub
Do You Want 🏆 Discount On Premium 👨‍💻Coding Courses? 🤔
Anonymous Poll
85%
Yes 😍
15%
No 😔