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?πŸ€”πŸ–₯️🧠
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 πŸ˜”
Spinning Donut using Python
πŸ‘‡πŸ‘‡

https://github.com/codegiovanni/Donut/blob/main/donut.py