Python Hub
19.3K subscribers
83 photos
6 videos
14 files
210 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
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
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
16%
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 ๐Ÿ˜”
Captain America Shield ๐Ÿ›ก ๐Ÿ‘‡๐Ÿ‘‡
.
https://copyassignment.com/drawing-captain-america-shield-with-python-turtle/