Python Pioneers: A Beginner's Guide πŸ‡ͺπŸ‡Ή
8.82K 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
Gibi News.apk
65.5 MB
Gibi News

Stay updated on the latest news about Ethiopian universities! Download Gibi News app now to get the latest information and updates directly on your phone

#Apps

Join : @ami_full_stack_developer

@python_pioneers
Python Pioneers: A Beginner's Guide πŸ‡ͺπŸ‡Ή
Gibi News.apk
Download Gibi News App – Your Source for University News in Ethiopia!

Gibi News is your one-stop platform to stay updated with the latest happenings across all Ethiopian universities. Whether you're a student, educator, or university staff, this app ensures you never miss out on important news, events, or announcements from your institution. Stay informed with ease!

Key Features:

Multilingual Support: Access news and updates in English, Amharic, and Afaan Oromoo (Oromiffaa). Select your preferred language for a personalized experience.
Real-Time Updates: Get real-time updates on major announcements, academic events, exam schedules, and much more directly on your phone.
Comprehensive Coverage: Receive news from all universities in Ethiopia, ensuring you're always in the loop, no matter where you study.
User-Friendly Interface: Designed for easy navigation, the app offers a clean and intuitive user experience, ensuring you find what you need quickly.

Why Gibi News?

Stay informed with updates specific to your university.
Save time by accessing all relevant information in one place.

Don't miss out on university news, academic schedules, or event details ever again. Whether it's a campus event, an exam announcement, or any other important update, Gibi News has you covered!

Download Gibi News today and stay connected to your university!

#Apps
#GibiNews

Join : @ami_full_stack_developer

@python_pioneers
Smiling Children Foundation

Bringing hope and smiles to those in need. Together, we can make a lasting impact on the lives of children who need us most.

"We rise by lifting others."

- Robert Ingersoll


Let’s stand united in supporting those who need it the most. πŸ’™

#ElshaddaiShonkoru
#SupportTheNeedy
#SmilingChildren
#HelpingHands

@smiling_children
@smiling_children
@smiling_children
❀3
This media is not supported in your browser
VIEW IN TELEGRAM
Python Exercises for Beginners

A python program that displays even numbers from 1 to 10.


Vedio credit : Programming with Mosh

#PythonExercises

@python_pioneers
πŸ‘2
A python program that displays even numbers from 1 to 10

for num in range(1, 11):
if num % 2 == 0:
print(num)

Output

2
4
6
8
10

#PythonExercises

@python_pioneers
πŸ‘5
Functions in programming

αˆ°αˆ‹αˆ α‰€α‰°αˆ°α‰₯πŸ‘‹

α‹›αˆ¬ Functions α‰ Python programming language αˆαŠ• αŠ₯αŠ•α‹°αˆ†αŠ‘ αŠ₯αŠ“ αˆˆαˆαŠ• αŠ₯αŠ•α‹°αˆšαŒ α‰…αˆ™αŠ• αŠ₯αŠ“α‹«αˆˆαŠ•πŸŽ‰

Functions are super cool because they let us reuse blocks of code to make our programs more efficient and organized. πŸ§‘β€πŸ’» You can pass in parameters, return results, and create clean, modular code. Let’s master functions together! πŸš€

Check out more here: Functions in Programming

πŸ‘†αŠ¨αˆ‹α‹­ α‹«αˆˆα‹αŠ• αˆ›αˆ΅αˆαŠ•αŒ αˆͺα‹« α‰ αˆ˜αŠ•αŠ«α‰΅ ሡለ Functions α‹¨α‰ αˆˆαŒ  αˆ˜αˆ¨α‹³α‰΅ α‰΅α‰½αˆ‹αˆ‹α‰½αˆα’

#Functions

@python_pioneers
@python_pioneers
πŸ”₯4
ለ @python_pioneers α‰»αŠαˆ αŠ α‹²αˆ΅ αŠ¨αˆ†αŠ“α‰½αˆ ከሡር α‹«αˆˆα‹αŠ• Button α‰ αˆ˜αŒ«αŠ• αŠ¨α‹šαˆ… α‰ αŠα‰΅ α‹¨α‰°αˆ›αˆ­αŠ“α‰Έα‹αŠ• α‰΅αˆαˆ…αˆ­α‰Άα‰½ αˆ›αŒαŠ˜α‰΅ α‰΅α‰½αˆ‹αˆ‹α‰½αˆα’

#PythonPioneers

@python_pioneers
πŸ‘3
πŸ˜πŸ˜‚πŸ˜πŸ˜‚πŸ˜πŸ˜‚πŸ˜‚πŸ˜‚

Pinterest_Et

#Fun


@python_pioneers
😁11😎1
πŸ‘‰Why Functions?

Stay Tuned...

#Functions

@python_pioneers
πŸ‘1
Function αˆˆαˆαŠ• α‹­αŒ α‰…αˆ˜αŠ“αˆ?

1. Code Reusability:

Functions αŠ αŠ•α‹΅αŠ• α‹¨αƒααŠα‹αŠ• code α‰ α‰°α‹°αŒ‹αŒ‹αˆš αŠ₯αŠ•α‹΅αŠ•αŒ α‰€αˆ˜α‹ α‹­αˆ¨α‹³αŠ“αˆα’ αŠ αŠ•α‹΄ Function define αŠ«αˆ¨αŒαŠ• ፣ α‰₯α‹™ αŒα‹œ call αŠ₯α‹«αˆ¨αŒαŠα‹ α‰ αˆαˆ¨αŒαŠα‹ ቦታ αˆ˜αŒ α‰€αˆ αŠ₯αŠ•α‰½αˆ‹αˆˆαŠ•α’ αˆ΅αˆˆα‹šαˆ… α‹¨αˆ†αŠαŠ• code α‰ α‰°α‹°αŒ‹αŒ‹αˆš αˆ˜αƒα αŠ α‹­αŒ α‰ α‰…α‰₯αŠ•αˆα’


   def greet():
print("Hello, world!")

greet() # Reusing the same function
greet()

2. Modularity:

α‹­αˆ… የ Function αŒ₯α‰…αˆ α‹°αŒαˆž αŠ αŠ•α‹΅αŠ• complex problem ለα‰₯α‹™ α‹¨α‰°αˆˆα‹«α‹© parts αŠ¨ααˆˆαŠ• αŠ₯α‹«αŠ•α‹³αŠ•α‹±αŠ• part α‹°αŒαˆž function α…αˆαŠ•αˆˆα‰΅ α‰ α‰€αˆ‹αˆ‰ αˆ˜αα‰΅αˆ„ αŠ₯αŠ•α‹΅αŠ“αŒˆαŠ α‹­αˆ¨α‹³αŠ“αˆα’


   def calculate_area(radius):
return 3.14 * radius * radius

3. Readability:

αˆˆαˆ‹αŠ›α‹ የ Function αŒ₯α‰…αˆ α‹°αŒαˆž α‹¨αƒααŠα‹ code α‰ α‰€αˆ‹αˆ‰ αŠ₯αŠ•α‹²αŠα‰ α‰₯ α‹«αˆ¨αŒˆα‹Žαˆα£ This helps other developers (and you, in the future) understand the code easily.


   def calculate_average(marks):
return sum(marks) / len(marks)

4. Avoiding Redundancy:

αŠ αŠ•α‹΅ የ code block α‰₯α‹™ αŒŠα‹œ αˆ˜αŒ α‰€αˆ αŠ¨αˆαˆˆαŒαŠ•α£ αŠ αŠ•α‹΅ αŒŠα‹œ function define αŠ αˆ­αŒˆαŠ• α‰ α‰€αˆ‹αˆ‰ α‰₯α‹™ call αˆ›α‹΅αˆ¨αŒ αŠ₯αŠ•α‰½αˆ‹αˆˆαŠ•α£ α‹­αˆ… α‹°αŒαˆž α‰ α‰°α‹°αŒ‹αŒ‹αˆš αŠ₯α‹¨αƒααŠ• αˆ΅αˆ…α‰°α‰΅ αŠ₯αŠ•α‹³αŠ•αˆ°αˆ« α‹­αˆ¨α‹³αŠ“αˆα’


   def convert_to_fahrenheit(celsius):
return (celsius * 9/5) + 32

β€’β€’β€’

#Functions

@python_pioneers
@python_pioneers
πŸ‘2
Function of Functions

Here are some AI generated pictures about functions.

#Functions

@python_pioneers
πŸ‘4
Calling a Function

# Define a function that adds two numbers
def add_numbers(num1, num2):
result = num1 + num2
return result

# Calling the function
sum_result = add_numbers(5, 3)

print("The sum is:", sum_result) # Outputs: The sum is: 8

Calling a function αˆ›αˆˆα‰΅ literally αŠ¨α‰°αˆ¨αŒŽαˆαŠ• Function መαŒ₯αˆ«α‰΅ αŠα‹α£ α‹­αˆ…αˆ αˆ›αˆˆα‰΅ αŠ αŠ•α‹΅ define α‹¨α‰°α‹°αˆ¨αŒˆ function executed αŠ₯αŠ•α‹²αˆ†αŠ• መαŒ₯αˆ«α‰΅ αŠ₯αŠ•α‹°αˆ›αˆˆα‰΅ αŠα‹α’
When you call a function, the program jumps to the function's code, runs it, and then continues from where the function was called.

αˆ›α‰₯ራαˆͺα‹«

β€’ add_numbers: α‹­αˆ„ function αˆαˆˆα‰΅ parameter α‹­α‹ˆαˆ΅α‹³αˆα£ αŠ¨α‹› α‹­α‹°αˆαˆ«α‰Έα‹αŠ“ α‹αŒ€α‰±αŠ• return α‹«αˆ¨αŒ‹αˆα’

Return α‹¨αˆšα‰£αˆˆα‹ statement αŒ₯α‰…αˆ™ α‹αŒ€α‰±αŠ• α‹ˆα‹° callerኑ α‹­αˆ˜αˆαˆ΅αŠ“ functionαŠ‘αŠ• exit αˆ›α‹΅αˆ¨αŒ αŠα‹α’

Return statement executed αŠ¨αˆ†αŠ functionαŠ‘αŠ• α‹«α‰†αˆ˜α‹αŠ“ functionኑ call α‰ α‰°α‹°αˆ¨αŒˆα‰ α‰΅ specified α‹¨αˆ†αŠα‹αŠ• α‹αŒ€α‰΅ α‹­αˆ°αŒ£αˆα’

Return statement αŠ₯αŠ•α‹΄α‰΅ α‹­αˆ°αˆ«αˆ?

- Syntax: return <expression>

- <expression> αˆ›αŠ•αŠ›α‹αˆ αŠ α‹­αŠα‰΅ value αˆŠαˆ†αŠ• α‹­α‰½αˆ‹αˆ variable, even a result of a calculation.
αˆ›αŠ•αŠ›α‹αˆ ነገር ከ return statement ቀαŒ₯ሎ ከሌለ functionኑ by default 'None' return α‹«αˆ¨αŒ‹αˆα’
αˆŒαˆ‹αŠ›α‹ የ return statement αŒ₯α‰…αˆ αŠ αŠ•α‹΅ function define αŠ αˆ­αŒˆαŠ• αŠ¨αˆ†αŠ ከfunctionኑ α‹¨αˆšαŒˆαŠ˜α‹αŠ• α‹αŒ€α‰΅ ከfunctionኑ ውαŒͺ α‰ αˆ†αŠ variable α‹αˆ΅αŒ₯ store αŠ αˆ­αŒˆαŠ• αŠ₯αŠ•α‹΅αŠ•αŒ α‰€αˆ˜α‹ α‹­αˆ¨α‹³αŠ“αˆα’

ምሳሌ

def square(number):
return number ** 2

# Calling the function and storing the result
result = square(4)

print("The square is:", result) # Outputs: The square is: 16

α‰ α‹šαˆ… ምሳሌ `return number ** 2' የ 'number'αŠ• squared value 'square()' α‹¨α‰°α‰£αˆˆα‹ function call α‹ˆα‹°α‰°α‹°αˆ¨αŒˆα‰ α‰΅ α‹­αˆαŠ«αˆα£ αŠ¨α‹› return α‹¨α‰°α‹°αˆ¨αŒˆα‹ squared value ከfunctionኑ ውαŒͺ result α‹¨α‰°α‰£αˆˆ variable α‹αˆ΅αŒ₯ store α‹­α‹°αˆ¨αŒαŠ“α£ then print α‹­α‹°αˆ¨αŒ‹αˆα’

#Return
#CallingaFunction
#Function

@python_pioneers
@python_pioneers
@python_pioneers
πŸ‘3
Python Functions

PIC 2⃣

#Functions

@python_pioneers
πŸ‘3πŸ‘2