Python Pioneers: A Beginner's Guide 🇪🇹
Открыть в Telegram
Welcome to Python Pioneers: Empowering Ethiopian students to embark on their coding journey. 📢 Channel: @python_pioneers 👥 Group: @python_pioneers_com
Больше8 874
Подписчики
Нет данных24 часа
-277 дней
-13630 дней
Архив постов
3. What is the output of the following code snippet:
for i in range(2, 8, 2): print(i)
19 мая 2024, 09:09
2. What is the correct syntax for using the range function with a start, end, and step value specified?
19 мая 2024, 09:08
1. What does the following code snippet do in Python?
for i in range(5): print(i)
19 мая 2024, 09:07
**Python Range Function or
range()
Practice Problems**
⏭️19 мая 2024, 08:54
PYTHON PIONEERS
Begin your coding journey with us! Join our Telegram and YouTube channels and start learning programming in Amharic today.
Start now and unlock endless possibilities with us.
Let's code together!
@python_pioneers
@python_pioneers
19 мая 2024, 00:41
https://t.me/tapswap_mirror_bot?start=r_5685218492
🎁 +2.5k Shares as a first-time gift
18 мая 2024, 10:31
JOIN TAP SWAP, ONLY 10 DAYS LEFT...
18 мая 2024, 10:31
18 мая 2024, ~10:32
"You can't go back and change the beginning, but you can start where you are and change the ending."
-C.S. Lewis
ጸጸት ውስጥ መግባታችን እና በግዜ ወደ ኋላ ሄደን ልናደርጋቸው የምንችላቸውን ነገሮች ያለማቋረጥ ማሰብ ቀላል ነው። ነገር ግን ያለፈው ነገር ላይ መቆየታችን ምንም አይጠቅመንም። ወደ ኋላ ተመልሰን የሆነውን መለወጥ አንችልም ነገር ግን አሁን ጀምረን ለውጥ ማምጣት እንችላለን።
መልካም ምሽት!
@python_pioneers
@python_pioneers
17 мая 2024, 13:42
... continued
For loopን ከrange() functionም ጋር መጠቀም እንችላለን፣ በዚህ ደግሞ የሆኑ range of numbers ላይ iterate እናረጋለን።
የ
range() function Python built-in function ሲሆን sequence of numbers እንድንፈጥር ይረዳናል። እናም ከfor loop ጋር ተጠቅመን over the sequence of numbers iterate ማድረግ እንችላለን።
የ range() function syntax ይሄን ይመስላል፡
range(start, stop, step)
- `start is the starting number of the sequence (optional, default is 0)
- stop is the ending number of the sequence (required)
- step is the difference between each number in the sequence (optional, default is 1)
ምሳሌ 1: በrange function ከ0-9 ቁጥሮችን ለማውጣት ከፈለግን፡ range(9) ማለት እንችላለን።
ምሳሌ 2:
``python
for kutir in range(1, 6):
print(kutir)
This would output:1 2 3 4 5
`
...to be continued
@python_pioneers
@python_pioneers
@python_pioneers16 мая 2024, 14:57
For loopን ከrange() functionም ጋር መጠቀም እንችላለን፣ በዚህ ደግሞ የሆኑ range of numbers ላይ iterate እናረጋለን።
የ
range() function Python built-in function ሲሆን sequence of numbers እንድንፈጥር ይረዳናል። እናም ከfor loop ጋር ተጠቅመን over the sequence of numbers iterate ማድረግ እንችላለን።
የ range() function syntax ይሄን ይመስላል፡
range(start, stop, step)
- `start is the starting number of the sequence (optional, default is 0)
- stop is the ending number of the sequence (required)
- step is the difference between each number in the sequence (optional, default is 1)
ምሳሌ 1: በrange function ከ0-9 ቁጥሮችን ለማውጣት ከፈለግን፡ range(9) ማለት እንችላለን።
ምሳሌ 2:
``python
for kutir in range(1, 6):
print(kutir)
This would output:1 2 3 4 5
`
...to be continued
@pytho_pioneers
@pytho_pioneers
@pytho_pioneers16 мая 2024, 14:53
16 мая 2024, ~14:53
For loopን በ Python የምንጠቀመው የሆነን line of code ወይም እንደ list, tuple, string, range, numbers... የመሳሰሉ sequence of elements በተደጋጋሚ execute ለማረግ ነው። ይህ ደግሞ በsequenceኡ እያንዳንዱ item ላይ ተመሳሳይ operation እንድናካሄድ ይረዳናል።
በPython የfor loop basic syntax ይሄን ይመስላል:
for item in sequence:
# do something with item
በsyntaxኡ ውስጥ:
- "item" የሚለው በእያንዳንዱ Iteration(ድግግሞሽ) የsequenceኡን every item ይወክላል(placeholder variable ነው።)
- "sequence" የሚለው ደግሞ የሚወክለው loopኡ iterate የሚያረግባቸው elements of sequenceን ነው።
እስኪ ከላይ ያለውን ሀሳብ በምሳሌ እንየው፣ በምሳሌው ደግሞ የሆነ የቁጥሮች ስብስብ አለ ፣ ከዛም በlistኡ iterate እያረገ እያንዳንዱን ቁጥር print የሚያደርግ program ለመፃፍ እንሞክራለን።
We will learn deeply about lists in the future...
numbers = [1, 2, 3, 4, 5]
for num in numbers:
print(num)
This would output:
1 2 3 4 5...to be continued @python_pioneers @python_pioneers
16 мая 2024, 13:22
For loopን በ Python የምንጠቀመው የሆነን line of code ወይም እንደ list, tuple, string, range, numbers... የመሳሰሉ sequence of elements በተደጋጋሚ execute ለማረግ ነው። ይህ ደግሞ በsequenceኡ እያንዳንዱ item ላይ ተመሳሳይ operation እንድናካሄድ ይረዳናል።
በPython የfor loop basic syntax ይሄን ይመስላል:
for item in sequence:
# do something with item
በsyntaxኡ ውስጥ:
- "item" የሚለው በእያንዳንዱ Iteration(ድግግሞሽ) የsequenceኡን every item ይወክላል(placeholder variable ነው።)
- "sequence" የሚለው ደግሞ የሚወክለው loopኡ iterate የሚያረግባቸው elements of sequenceን ነው።
እስኪ ከላይ ያለውን ሀሳብ በምሳሌ እንየው፣ በምሳሌው ደግሞ የሆነ የቁጥሮች ስብስብ አለ ፣ ከዛም በlistኡ iterate እያረገ እያንዳንዱን ቁጥር print የሚያደርግ program ለመፃፍ እንሞክራለን።
We will learn deeply about lists in the future...
numbers = [1, 2, 3, 4, 5]
for num in numbers:
print(num)
This would output:
1 2 3 4 5For loopን ከrange() functionም ጋር መጠቀም እንችላለን፣ በዚህ ደግሞ የሆኑ range of numbers ላይ iterate እናረጋለን። የ
range() function Python built-in function ሲሆን sequence of numbers እንድንፈጥር ይረዳናል። እናም ከfor loop ጋር ተጠቅመን over the sequence of numbers iterate ማድረግ እንችላለን።
የ range() function syntax ይሄን ይመስላል፡
range(start, stop, step)
- `start is the starting number of the sequence (optional, default is 0)
- stop is the ending number of the sequence (required)
- step is the difference between each number in the sequence (optional, default is 1)
ምሳሌ 1: በrange function ከ0-9 ቁጥሮችን ለማውጣት ከፈለግን፡ range(9) ማለት እንችላለን።
ምሳሌ 2:
``python
for kutir in range(1, 6):
print(kutir)
This would output:1 2 3 4 5
`
...to be continued
@pytho_pioneers
@pytho_pioneers
@pytho_pioneers16 мая 2024, 13:21
16 мая 2024, ~13:21
Repost from Python Pioneers: A Beginner's Guide 🇪🇹
Explore the Lessons We've Been Learning: Click the Links Below to Dive into Various Topics
16 мая 2024, 07:59
Hey everyone!
ቀጣይ ትምህርታችን የሚሆነው ስለ for loop ነው።
Stay tuned for some exciting exercises and examples in our upcoming session!
#ForLoop
@python_pioneers
15 мая 2024, 07:06
+1
Hey everyone!
ቀጣይ ትምህርታችን የሚሆነው ስለ for loop ነው።
Stay tuned for some exciting exercises and examples in our upcoming session!
#ForLoop
@python_pioneers
15 мая 2024, 07:06
15 мая 2024, ~07:06
+7
Here are some memes that made my day😂😂
@python_pioneers
15 мая 2024, 03:10
+1
😁😁😁😁😁😁😁😁😁😁😁😁
Here are some memes that made my day😂😂
@python_pioneers
15 мая 2024, 03:08
15 мая 2024, ~03:08
+9
😁😁😁😁😁😁😁😁😁😁😁😁
Some memes that ma
15 мая 2024, 03:08
15 мая 2024, ~03:08
Python Programs with If Condition
1. A simple grading program that checks if a student's test score is above a certain threshold and assigns a letter grade accordingly.
2. A temperature converter program that checks if the user input is in Celsius or Fahrenheit and converts it to the other unit.
3. A program that checks if a given number is even or odd.
4. A simple calculator program that checks if the user input is an addition, subtraction, multiplication, or division operation and performs the calculation accordingly.
5. A program that checks if a given year is a leap year or not.
6. A program that compares two numbers and prints out the larger one.
7. A program that checks if a given number is positive, negative, or zero.
8. A program that checks if a user inputted password meets certain criteria (e.g. minimum length, presence of special characters).
👨💻👨💻👩💻👩💻👩💻👩💻👨💻👨💻👨💻👨💻👨💻👨💻
PRACTICE MAKES PERFECT!
@python_pioneers
@python_pioneers
14 мая 2024, 08:03
