Python Pioneers: A Beginner's Guide 🇪🇹
የ25 ብር የአየር ሰዓት የሚያሸልም ጥያቄ If you're ready show me your 👍 ⌚ 3 : 15 @python_pioneers
Please send me only your answers.
Send it to : @Mntsnt_ZP
The winner will be the person who gets the most correct answers in the shortest amount of time.
Good Luck!🤞
@python_pioneers
Send it to : @Mntsnt_ZP
The winner will be the person who gets the most correct answers in the shortest amount of time.
Good Luck!🤞
@python_pioneers
👍2
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
⌚Time's Up
Thank you all of you for your participation.
We will announce the winner...🏆
Thank you all of you for your participation.
We will announce the winner...🏆
👍1
❤1👍1
The winner has received the prize 🏆
You all did great participating in the quiz. Most of you were correct, but some of you were a little late.
THANK YOU!
@python_pioneers
You all did great participating in the quiz. Most of you were correct, but some of you were a little late.
THANK YOU!
@python_pioneers
👍3
"The only way to achieve the impossible is to believe it is possible."
-Unknown
መልካም ምሽት!
#Quote
@python_pioneers
🔥2💯1
Forwarded from Luna's pathway🤗 (Luna)
The Black Dot Story
One day, a professor entered the classroom and asked his students to prepare for a surprise test. They all waited anxiously at their desks for the exam to begin. The professor handed out the exams with the text facing down, as usual. Once he handed them all out, he asked the students to turn over the papers. To everyone’s surprise, there were no questions – just a black dot in the center of the sheet of paper. The professor, seeing the expression on everyone’s faces, told them the following: “I want you to write about what you see there.” The students, confused, got started on the inexplicable task. At the end of the class, the professor took all the exams, and started reading each one of them out loud, in front of all the students. All of them, with no exception, defined the black dot, trying to explain its position in the center of the sheet. After all had been read, the classroom silent, the professor started to explain: “I’m not going to grade you on this, I just wanted to give you something to think about. No one wrote about the white part of the paper. Everyone focused on the black do – and the same happens in our lives. We have a piece of paper to observe and enjoy, but we always focus on the dark spots. Our life is a gift, and we always have reasons to celebrate – nature renewing itself daily, friends around us, the job that provides our livelihood, etc.
However, we insist on focusing only on the dark spot – the health issues that bother us, the lack of money, the complicated relationships with others, or the disappointment with a friend. The dark spots are very small when compared to everything we have in our lives, but they’re the ones that pollute our mind. Take your eyes away from the black dots in your life. Enjoy each one of your blessings and each moment that life gives you. Be happy and live a life such that even the undertaker will be disappointed when it is your time to go.
Happy Weekend😍 😍
Tag the author if you guys know 🙏
One day, a professor entered the classroom and asked his students to prepare for a surprise test. They all waited anxiously at their desks for the exam to begin. The professor handed out the exams with the text facing down, as usual. Once he handed them all out, he asked the students to turn over the papers. To everyone’s surprise, there were no questions – just a black dot in the center of the sheet of paper. The professor, seeing the expression on everyone’s faces, told them the following: “I want you to write about what you see there.” The students, confused, got started on the inexplicable task. At the end of the class, the professor took all the exams, and started reading each one of them out loud, in front of all the students. All of them, with no exception, defined the black dot, trying to explain its position in the center of the sheet. After all had been read, the classroom silent, the professor started to explain: “I’m not going to grade you on this, I just wanted to give you something to think about. No one wrote about the white part of the paper. Everyone focused on the black do – and the same happens in our lives. We have a piece of paper to observe and enjoy, but we always focus on the dark spots. Our life is a gift, and we always have reasons to celebrate – nature renewing itself daily, friends around us, the job that provides our livelihood, etc.
However, we insist on focusing only on the dark spot – the health issues that bother us, the lack of money, the complicated relationships with others, or the disappointment with a friend. The dark spots are very small when compared to everything we have in our lives, but they’re the ones that pollute our mind. Take your eyes away from the black dots in your life. Enjoy each one of your blessings and each moment that life gives you. Be happy and live a life such that even the undertaker will be disappointed when it is your time to go.
Happy Weekend
Tag the author if you guys know 🙏
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
Forwarded from Abiy Ahmed Ali 🇪🇹
በዛሬው ፈጣን አለም ባላሰለሰ ትምህርት እና የክሂሎት እድገት ውስጥ መሳተፍ ከመቼውም ጊዜ ይበልጥ እጅግ አስፈላጊ ሆኗል።
በረፍት ላይ ላላችሁ ተማሪዎች፣ ለወጣት ባለሞያዎች፣ ራሳቸሁን በእውቀት በመገንባት በሀገር ውስጥም ሆነ በውጭ በጎ ተፅዕኖ ለመፍጠር ለምትጓጉ ሁሉ የአምስት ሚሊዮን ኮደርስ ፕሮጀክት ቀዳሚ ሊያደርጋችሁ ተሰናድቶላችኋል። የትምህርት እና የእውቀት መነሻችሁ እና ያላችሁበት ደረጃ ምንም ይሁን ያላችሁን ክሂሎት ለማሳደግም ሆነ አዲስ ነገር ለማወቅ ለምትሹ ሁሉ ሰፊ የእድል በር ተከፍቶላችኋል።
በመላው ኢትዮጵያ ያላችሁ የክሂሎት አበልፃጊዎች፣ አሣዳጊዎች፣ ዩኒቨርሲቲዎች ይኽንን ፕሮጀክት እና እንቅስቃሴዎቹን እንዲደግፉ ጥሪ አቀርባለሁ።
ውድ ባለተሰጥዖዎች ፣ የኢትዮጵያችን ጥንካሬ በእናንተ እድገት ላይ የተመሠረተ ነው።
ለመመዝገብ: http://www.ethiocoders.et
In today's fast-paced world, continuous learning and skills development are more important than ever.
To all students on break, young professionals, and those eager for personal growth and making a positive impact locally and beyond: the 5 Million Coders initiative has been launched to help you stay ahead, regardless of your career stage or goals. Whether you're looking to enhance your current skills, learn something new, or prepare for future opportunities, this initiative is designed for you.
I also strongly encourage everyone involved in skill-building in Ethiopia—incubators, accelerators, universities, and others—to fully embrace this initiative. Our nation's strength lies in your growth!"
Register through: http://www.ethiocoders.et
በረፍት ላይ ላላችሁ ተማሪዎች፣ ለወጣት ባለሞያዎች፣ ራሳቸሁን በእውቀት በመገንባት በሀገር ውስጥም ሆነ በውጭ በጎ ተፅዕኖ ለመፍጠር ለምትጓጉ ሁሉ የአምስት ሚሊዮን ኮደርስ ፕሮጀክት ቀዳሚ ሊያደርጋችሁ ተሰናድቶላችኋል። የትምህርት እና የእውቀት መነሻችሁ እና ያላችሁበት ደረጃ ምንም ይሁን ያላችሁን ክሂሎት ለማሳደግም ሆነ አዲስ ነገር ለማወቅ ለምትሹ ሁሉ ሰፊ የእድል በር ተከፍቶላችኋል።
በመላው ኢትዮጵያ ያላችሁ የክሂሎት አበልፃጊዎች፣ አሣዳጊዎች፣ ዩኒቨርሲቲዎች ይኽንን ፕሮጀክት እና እንቅስቃሴዎቹን እንዲደግፉ ጥሪ አቀርባለሁ።
ውድ ባለተሰጥዖዎች ፣ የኢትዮጵያችን ጥንካሬ በእናንተ እድገት ላይ የተመሠረተ ነው።
ለመመዝገብ: http://www.ethiocoders.et
In today's fast-paced world, continuous learning and skills development are more important than ever.
To all students on break, young professionals, and those eager for personal growth and making a positive impact locally and beyond: the 5 Million Coders initiative has been launched to help you stay ahead, regardless of your career stage or goals. Whether you're looking to enhance your current skills, learn something new, or prepare for future opportunities, this initiative is designed for you.
I also strongly encourage everyone involved in skill-building in Ethiopia—incubators, accelerators, universities, and others—to fully embrace this initiative. Our nation's strength lies in your growth!"
Register through: http://www.ethiocoders.et
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
Realme has announced a 300W fast charger. Thanks to the new technology, the smartphone charges from 0 to 50% in 3 minutes and up to 100% in less than 5 minutes. Details will be revealed on August 14 at the presentation of the new product
🌐📲 @TechnologyBoxs
@python_pioneers
🌐📲 @TechnologyBoxs
@python_pioneers
INSERTION OF LIST ELEMENTS
አንድ list ውስጥ አዳስ element የምንጨምርበት ብዙ አይነት መንገድ አለ፣ ከእነዛም መንገዶች ሁለቱን እንይ።
1. append() method
ይሄንን method በጠቀም አንድ list ውስጥ አዲስ element መጨመር እንችላለን፣ add የምናረገው element ደግሞ የሚጨመረው የlistኡ መጨረሻ ላይ ነው።
ለምሳሌ:
2. insert() method
ይሄኛውን method ደግሞ አዲስ element specified የሆነ ቦታ ላይ ለማስገባት ስንፈልግ እንጠቀመዋለን። ሁለት argument እንደ input ይወስዳል one is the index and the other is the element.
An argument refers to the value that is passed to a function or method when it is called.
ለምሳሌ:
...
#Lists
#Python
@python_pioneers
@python_pioneers
አንድ list ውስጥ አዳስ element የምንጨምርበት ብዙ አይነት መንገድ አለ፣ ከእነዛም መንገዶች ሁለቱን እንይ።
1. append() method
ይሄንን method በጠቀም አንድ list ውስጥ አዲስ element መጨመር እንችላለን፣ add የምናረገው element ደግሞ የሚጨመረው የlistኡ መጨረሻ ላይ ነው።
Syntax :
list_name.append(new_element)
ለምሳሌ:
countrys = ["Ethiopia", "Uganda", "France"]
#if I want to add "Kenya" in the list I can use append() and it will add the country's name at the end of the list
countrys.append("Kenya")
print(countrys)
#Output : ["Ethiopia", "Uganda", "France", "Kenya"]
2. insert() method
ይሄኛውን method ደግሞ አዲስ element specified የሆነ ቦታ ላይ ለማስገባት ስንፈልግ እንጠቀመዋለን። ሁለት argument እንደ input ይወስዳል one is the index and the other is the element.
Syntax :
list_name.insert(i, new_element)
ለምሳሌ:
countrys = ["Ethiopia", "Uganda", "France"]
#I can use the insert method here to add the country name at specified index
countrys.insert(2, "Kenya")
print(countrys)
#Output : ["Ethiopia", "Uganda", "Kenya", "France"]
...
#Lists
#Python
@python_pioneers
@python_pioneers
Forwarded from Zaphnath Paaneah
Join our channel and embark on your coding journey with us!
👉 @python_pioneers
Gain access to free coding lessons in Amharic language. Additionally, stay updated on the latest tech news and new innovations.
Pythonን በአማርኛ እንማር!
@python_pioneers
@python_pioneers
👉 @python_pioneers
Gain access to free coding lessons in Amharic language. Additionally, stay updated on the latest tech news and new innovations.
Pythonን በአማርኛ እንማር!
@python_pioneers
@python_pioneers
👍2❤1⚡1
Arranging a List
የአንድን list elements order በምንፈልገው መንገድ ማድረግ እንችላለን፣ ይሄንንም የምናረገው በእነዚህ methods ነው።
1. sort() method
In a list by default insertion order is preserved ማለትም መጀመሪያ ላይ የlistኡን element ባስቀመጥንበት ቦታ ነው የምናገኘው።
If we want to sort the elements of the list according to default natural sorting order then we should go for sort() method.
ለ ቁጥሮች default natural sorting order ascending order ነው።
ለ strings default natural sorting order alphabetical order ነው።
sort() method ለመጠቀም listኡ ተመሳሳይ type ያላቸውን elements መያዝ አለበት፣ አለበለዝያ we will get TypeError.
ለምሳሌ :
2. reverse() method
This method reverses the order of list elements.
ለምሳሌ :
...
#Lists
#ArrangingLists
@python_pioneers
@python_pioneers
የአንድን list elements order በምንፈልገው መንገድ ማድረግ እንችላለን፣ ይሄንንም የምናረገው በእነዚህ methods ነው።
1. sort() method
In a list by default insertion order is preserved ማለትም መጀመሪያ ላይ የlistኡን element ባስቀመጥንበት ቦታ ነው የምናገኘው።
If we want to sort the elements of the list according to default natural sorting order then we should go for sort() method.
ለ ቁጥሮች default natural sorting order ascending order ነው።
ለ strings default natural sorting order alphabetical order ነው።
sort() method ለመጠቀም listኡ ተመሳሳይ type ያላቸውን elements መያዝ አለበት፣ አለበለዝያ we will get TypeError.
Syntax :
list_name.sort()
ለምሳሌ :
yene_list = [4, 5, 3, 1, 2]
yene_list.sort()
print(yene_list)
Output : [1, 2, 3, 4, 5]
2. reverse() method
This method reverses the order of list elements.
Syntax :
list_name.reverse()
ለምሳሌ :
lela_list = [1, 4, 2, 8, 6]
lela_list.reverse()
print(lela_list)
Output : [8, 6, 4, 2, 1]
...
#Lists
#ArrangingLists
@python_pioneers
@python_pioneers
👍1
Python Pioneers: A Beginner's Guide 🇪🇹
Arranging a List የአንድን list elements order በምንፈልገው መንገድ ማድረግ እንችላለን፣ ይሄንንም የምናረገው በእነዚህ methods ነው። 1. sort() method In a list by default insertion order is preserved ማለትም መጀመሪያ ላይ የlistኡን element ባስቀመጥንበት ቦታ ነው የምናገኘው። If we want to sort the elements…
This media is not supported in your browser
VIEW IN TELEGRAM
😁5