Python Pioneers: A Beginner's Guide 🇪🇹 – Telegram
Python Pioneers: A Beginner's Guide 🇪🇹
8.87K subscribers
345 photos
39 videos
24 files
61 links
Welcome to Python Pioneers: Empowering Ethiopian students to embark on their coding journey. 🚀🌐🗺📱🖥💻🖱🛰

DM 📩 : @MntsntZP
Download Telegram
3. What does the following code print?
x = "Hello"
print(x[1:])
Anonymous Quiz
21%
a) H
48%
b) ello
24%
c) Hello
7%
d) Error
5. What is the result of the following code?
x = 3
y = 4 z = 5 x, y, z = z, y, x print(x, y, z)
Anonymous Quiz
15%
a) 4 3 5
56%
b) 5 4 3
17%
c) 3 5 4
13%
d) Error
1. What is the output of the following code?
x = 5
y = 2 print(x / y)
Anonymous Quiz
9%
a) 2
74%
b) 2.5
4%
c) 2.0
13%
d) Error
8. What will the following code output?
x = 10
y = 5 print(x == y)
Anonymous Quiz
10%
a) True
78%
b) False
10%
c) Error
2%
d) None
7. What is the result of the following code?
x = [1, 2, 3]
x = x * 2 print(x)
Anonymous Quiz
13%
a) [1, 2, 3]
33%
b) [1, 2, 3, 1, 2, 3]
42%
c) [2, 4, 6]
11%
d) Error
👍1
6. What will be the output of the following code?
x = 5
y = 2 print(x // y)
Anonymous Quiz
36%
a) 2
45%
b) 2.5
7%
c) 3
11%
d) 5
9. What will be the output of the following code?
x = [1, 2, 3]
x[0] = 10 print(x)
Anonymous Quiz
19%
a) [1, 2, 3]
62%
b) [10, 2, 3]
8%
c) [2, 3]
11%
d) Error
10. What is the result of the following code?
x = 10
y = 20 print(x is y)
Anonymous Quiz
9%
a) True
72%
b) False
7%
c) None
12%
d) Error
11. What will be the output of the following code?
x = [10, 20, 30]
y = x y[1] = 100 print(x)
Anonymous Quiz
25%
a) [10, 100, 30]
31%
b) [10, 20, 30]
31%
c) [100, 20, 30]
13%
d) Error
14. What is the output of the following code?
x = 3
y = 5 print(x == y)
Anonymous Quiz
8%
a) True
76%
b) False
8%
c) 3
8%
d) 5
15. What will be the output of the following code?
x = "Hello"
x += " World" print(x)
Anonymous Quiz
39%
a) HelloWorld
43%
b) Hello World
9%
c) Error
9%
d) WorldHello
17. What is the result of the following code?
x = 5
y = 2 z = 2 print(x // y == z)
Anonymous Quiz
33%
a) True
48%
b) False
13%
c) Error
6%
d) None
16. What will the following code output?
x = [1, 2, 3]
x.append(4) print(len(x))
Anonymous Quiz
22%
a) 3
52%
b) 4
20%
c) 5
7%
d) 6
18. What will be the output of the following code?
x = [1, 2, 3]
x[1:] = [10, 20] print(x)
Anonymous Quiz
34%
a) [1, 10, 20]
22%
b) [10, 20]
36%
c) [1, 10, 20, 3]
8%
d) Error
19. What will be the output of the following code?
x = "abc"
x = x * 3 print(x)
Anonymous Quiz
63%
a) abcabcabc
19%
b) abc
17%
c) Error
2%
d) abcabc
👍1
20. What will the following code output?
x = 1
y = "1" print(x == y)
Anonymous Quiz
27%
a) True
45%
b) False
11%
c) 1
16%
d) Error
1👍1
21. What will be the result of the following code?
x = 5
x = x * 2 print(x)
Anonymous Quiz
0%
a) 5
76%
b) 10
8%
c) 7
16%
d) Error
22. Which method is used to remove all items from a list?
Anonymous Quiz
26%
a) delete()
40%
b) clear()
9%
c) pop()
26%
d) remove()