Python Pioneers: A Beginner's Guide 🇪🇹 – Telegram
Python Pioneers: A Beginner's Guide 🇪🇹
8.89K 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
⚡️⚡️⚡️⚡️⚡️⚡️⚡️⚡️⚡️⚡️⚡️⚡️
INDENTATION IN PYTHON

Indentation ወይም (code ስንፅፍ ገባ ብሎ መጀመር) በሌሎች programming languages ለreadability ነው ምንጠቀመው ( code በቀላሉ እንድነበብልን ማለት ነው)

ነገር ግን በPython indentation ለreadability ብቻ ሳይሆን የቋንቋው syntax መሰረታዊ ገፅታ ነው።

1. Indentation Basics::

- Indentation የcode blocks ስፋት ምን ያህል እንደሆነ ለማሳየት ይጠቅማል

- It's typically አራት spaces per level of indentation, ግን አንዳንድ ሰው ደግሞ tab prefer ያረጋል (which are equivalent to four spaces in python).

- Consistent indentation is crucial for Python code to function correctly.

2. Code Blocks:

- Code blocks የምንላቸው አንድ ላይ grouped የሆኑ codes section ነው። ለምሳሌ within loops, conditionals, and functions

- በPython, code blocks defined የሚሆኑት እንደሌሎች programming languages በcurly braces ('{}') ወይም በkey words ሳይሆን በindentation ነው።

3. Example:


   if condition:
# This block is indented under the if statement.
statement1
statement2
else:
# This block is indented under the else statement.
statement3


4. Indentation Errors:

- በትክክል indent አለማድረግ እና spaces and tabs mix ማድረግ syntax error እንዲፈጠር ያደርጋል።

- Python በፃፍነው code ውስጥ የindentation ችግር ካለ 'IndentationError' raise ያደርጋል።

5. Best Practices:

- Use a consistent indentation style throughout your codebase.

- Most Python codebases use four spaces for each level of indentation.

- Use an editor or IDE that automatically converts tabs to spaces to avoid indentation issues.

Remember, በpython indentation የፃፍነው code እንዲነበብ ለማድረግ ብቻ የሚጠቅም ሳይሆን የቋንቋው በጣም አስፈላጊ የsyntax part ነው፣ እናም you have to pay attention to it.


@python_pioneers
@python_pioneers
21
I hope your day has been full of joy, productivity, and meaningful moments.

የዛሬ ቀን እንዴት ነበር ያለፈው - መልሳችሁን በreaction ግለፁልን:

😁 - Happy
😭 - Sad
🥰 - Love
😠 - Angry
🤔 - I don't know

@python_pioneers
😁8🥰3👨‍💻2🤷2🔥1
Lines & Indentation
👍3

ዛሬ ማታ የ25 ብር የዓየር ሰዓት የሚያሸልም ከPython quiz ይኖረናል።

እንዳያመልጣችሁ!

: 8 : 00 PM EAT

@python_pioneers
Forwarded from Tabir Crypto
🤔 ይህን ታውቃላችሁ ?

📌 በኮምፒዩተር ፕሮግራም ውስጥ ያለውን ችግር ለመግለጥ " bug '' የሚለው ቃል በ1947 የ computer scientist Grace Hopper በ Mark II ኮምፒዩተር ላይ ችግር የሚፈጥር የእሳት ራት ስታገኝ በ logbook ላይ ፣ " debugging " ብላ ነበር 🤗

በዚህም bug እና debug ታዋቂ ቃላት ሆነዋል

አስገራሚ የ programming አጫጭር እውነታዎችን እንዲሁም quiz ለማግኘት

🫴🫴🫴🫴🫴🫴🫴🫴🫴

@Birranaye
@Birranaye

🙄🙄🙄🙄🙄🙄🙄
Please open Telegram to view this post
VIEW IN TELEGRAM
ዝግጁ
መሆናችሁን
👍
ግለፁልን
👍10
1 Min to go!

አሸናፊ የሚሆነው ሰው አብዛኛውን ጥያቄ በአጭር ጊዜ የመለሰ ነው።

መልካም እድል!
🎲 Quiz 'Python Quiz 1'
This quiz is created by Python Pioneers from Sololearn
🖊 10 questions · 30 sec
Dear Python Pioneers, there are 🕙 ten minutes left for the quiz to end.

Your participation is wonderful 💯
Thank you to everyone who participated in the quiz!

ፈተናው አልቋል እናም ውጤቱን within minutes እናሳውቃችኋለን !

Stay tuned for the results!

@python_pioneers
🏆 Top results in the quiz 'Python Quiz 1'

🖊 10 questions
30 seconds per question
🤓 33 people took the quiz

🥇 @Yohaboy – 10 (22.5 sec)
🥈 @JoeyFamily -- 10 (23.5 sec)
🥉 @FearLess_0101 – 10 (53.8 sec)
4 @IbnuAfdel – 10 (2 min 51 sec)

አሸናፊዎች እንኳን ደስ አላችሁ!

@python_pioneers
👍2
All the winners have received their prize 🏆🏆🏆🏆🏆🏆🏆🏆🏆
👏2👍1
እስኪ አሁን ደግሞ በዚህች አጭር ታሪክ እንሰነባበት

Learning from Mistakes

Thomas Edison tried two thousand different materials in search of a filament for the light bulb. When none worked satisfactorily, his assistant complained, "All our work is in vain. We have learned nothing."

Edison replied very confidently, "Oh, we have come a long way and we have learned a lot. We know that there are two thousand elements which we cannot use to make a good light bulb."

Moral: We can also learn from our mistakes.

በተስፋ የተሞላ መልካም ምሽት ይሁንላችሁ!

#EnglishStories

@python_pioneers
2👍1
😁😁😁😁😁😁😁😁😁

#Fun

@python_pioneers
😁121
👨‍🎓👨‍🎓👨‍🎓👩‍🎓👩‍🎓👩‍🎓👩‍🎓👩‍🎓👨‍🎓👨‍🎓👨‍🎓👩‍🎓👨‍🎓👩‍🎓👩‍🎓👩‍🎓
በነገራችን ላይ የ12ኛ ክፍል ተማሪዎች ቻነላችን ውስጥ አላችሁ?
👍3😭1