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
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
Captain America Shield 🛡 👇👇
.
https://copyassignment.com/drawing-captain-america-shield-with-python-turtle/
.
https://copyassignment.com/drawing-captain-america-shield-with-python-turtle/