ββ Attention ββ
α°αα α¨ @python_pioneers channel α€α°α°α¦α½ αα¬ αα³ α¨ 25 α₯α α¨α α¨α α°αα΅ α¨αα«αΈαα α₯α«α ααα¨ααα’ α₯αα³α«ααα£α½α!
Join our Telegram channel for a chance to win a 25 birr card! Answer the question and claim your prize. Don't miss out!
#Quiz
@python_pioneers
α°αα α¨ @python_pioneers channel α€α°α°α¦α½ αα¬ αα³ α¨ 25 α₯α α¨α α¨α α°αα΅ α¨αα«αΈαα α₯α«α ααα¨ααα’ α₯αα³α«ααα£α½α!
Join our Telegram channel for a chance to win a 25 birr card! Answer the question and claim your prize. Don't miss out!
#Quiz
@python_pioneers
π₯3
1. What is the output of the following code?
A) [1, 2, 3]
B) [2, 3, 4]
C) [2, 3, 4, 5]
D) [1, 2, 3, 4]
2. What is the result of running the following code?
A) [5, 4, 3, 2, 1]
B) [1, 2, 3, 4, 5]
C) [5, 4, 3, 2]
D) [4, 3, 2, 1]
3. What will be the output of the following code snippet?
A) [1, 2, 6, 4, 5]
B) [1, 2, 3, 6, 5]
C) [1, 2, 6, 3, 4]
D) [1, 2, 3, 4, 6]
4. What does the following code do?
A) Removes the element at index 2 from the list
B) Removes the last element from the list
C) Adds the element at index 2 to the list
D) Replaces the element at index 2 with a new value
5. How can you check if a specific value exists in a list in Python?
A) Using the in keyword
B) Using the exists() method
C) Using the exists keyword
D) Using the contains() method
#Quiz
#PrizeWinningQuiz
@python_pioneers
@python_pioneers
my_list = [1, 2, 3, 4, 5]
print(my_list[1:4])
A) [1, 2, 3]
B) [2, 3, 4]
C) [2, 3, 4, 5]
D) [1, 2, 3, 4]
2. What is the result of running the following code?
my_list = [1, 2, 3, 4, 5]
new_list = my_list[::-1]
print(new_list)
A) [5, 4, 3, 2, 1]
B) [1, 2, 3, 4, 5]
C) [5, 4, 3, 2]
D) [4, 3, 2, 1]
3. What will be the output of the following code snippet?
my_list = [1, 2, 3, 4, 5]
my_list[2] = 6
print(my_list)
A) [1, 2, 6, 4, 5]
B) [1, 2, 3, 6, 5]
C) [1, 2, 6, 3, 4]
D) [1, 2, 3, 4, 6]
4. What does the following code do?
my_list = [1, 2, 3, 4, 5]
del my_list[2]
A) Removes the element at index 2 from the list
B) Removes the last element from the list
C) Adds the element at index 2 to the list
D) Replaces the element at index 2 with a new value
5. How can you check if a specific value exists in a list in Python?
A) Using the in keyword
B) Using the exists() method
C) Using the exists keyword
D) Using the contains() method
#Quiz
#PrizeWinningQuiz
@python_pioneers
@python_pioneers
π1