What will be the output of the following Python code snippet?π€π₯οΈπ§
d = {"john":40, "peter":45}
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())
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('+'))
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)
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)
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
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 ππ
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)
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)
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/
.
https://copyassignment.com/drawing-captain-america-shield-with-python-turtle/