Python Pioneers: A Beginner's Guide πŸ‡ͺπŸ‡Ή
8.63K subscribers
346 photos
40 videos
24 files
64 links
Welcome to Python Pioneers: Empowering Ethiopian students to embark on their coding journey.

πŸ“’ Channel: @python_pioneers
πŸ‘₯ Group: @python_pioneers_chat
Download Telegram
❗❗ 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
πŸ”₯3
1. What is the output of the following code?

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