The output of the following codes are the same.๐ค๐ฅ๏ธ๐ง
[x**2 for x in range(10)] list(map((lambda x:x**2), range(10)))
[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))))
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)
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
Which of the following functions results in an error?๐ค๐ฅ๏ธ๐ง
Anonymous Quiz
65%
turtle.shape(โturtleโ)
13%
turtle.shape(โsquareโ)
12%
turtle.shape(โtriangleโ)
10%
turtle.shape(โrectangleโ)
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
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)
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/