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
Welcome to Python Pioneers! This channel is here to help Ethiopian students take their first steps into the world of coding. Join us as we embark on this exciting journey and don't forget to invite your friends to join us too! πŸš€

#Join_αŠ αˆ­αŒ‰
#αˆˆαŒ“α‹°αŠžα‰»α‰½αˆαˆ_Share_αŠ αˆ­αŒ‰αˆ‹α‰Έα‹
#Python_Pioneers
πŸ‘7
HeyπŸ‘‹ Python Pioneers! Continuing our lesson on logic gates, we'll explore the next 5 types of gates: NOT, NOR, OR, XNOR and XNOR gates, and how they are used to build complex circuits.
Stay tuned!
...
#3_NOT_Gateፑ
- የ NOT Gate፣ αŠ₯αŠ•α‹²αˆαˆ Inverter α‰°α‰₯ሎ α‹¨αˆšαŒ αˆ«α‹α£ ከInput α‰°α‰ƒαˆ«αŠ’ α‹¨αˆ†αŠ output α‹­αˆ°αŒ£αˆα’ Input 0 αŠ¨αˆ†αŠ, α‹αŒ€α‰± 1 αŠα‹α£ αŠ₯αŠ“ α‰ α‰°α‰ƒαˆ«αŠ’α‹ Input 1 αŠ¨αˆ†αŠ the output 0 α‹­αˆ†αŠ“αˆα’ It can take only one Input
Truth table for NOT Gate
| A | Output |
|-----|---------|
| 0 | 1 |
| 1 | 0 |

#4_NAND_Gateፑ
- የAND Gate αŠ₯αŠ“ የNOT Gate αŒ₯ምር αˆ²αˆ†αŠ• αˆαˆ‰αˆ Inputs 1 αˆ²αˆ†αŠ‘ α‰₯ቻ 0 α‹­αˆ°αŒ£αˆ and vice versa
αˆ˜αŒ€αˆ˜αˆͺα‹« αˆ‹α‹­ AND ቀαŒ₯ሎ α‹°αŒαˆž NOT
Truth table for NAND Gate
| A | B| Output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |

#5_NOR_Gateፑ
- የ NOR Gate የOR Gate αŠ₯αŠ“ የNOT Gate combination αŠα‹α’
αˆ˜αŒ€αˆ˜αˆͺα‹« αˆ‹α‹­ OR ቀαŒ₯ሎ α‹°αŒαˆž NOT
αˆαˆ‰αˆ Inputs 0 αˆ²αˆ†αŠ‘ α‰₯ቻ 1 α‹­αˆ°αŒ£αˆ and otherwise 0 α‹­αˆ°αŒ£αˆα’

Truth table for NOR Gate
| A | B | Output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |


#6_XOR_Gateፑ
- የ XOR Gate(exclusive OR) Inputs α‹¨α‰°αˆˆα‹«α‹© αŠ¨αˆ†αŠ‘ 1 α‹αŒ€α‰΅ α‹­αˆ°αŒ£αˆ otherwise 0
Truth table for XOR Gate
| A | B | output |
|---|---|-------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |

#7_XNOR_Gateፑ

XNOR Gate(exclusive NOR) Inputs α‰°αˆ˜αˆ³αˆ³α‹­ αŠ¨αˆ†αŠ‘ 1 α‹­αˆ°αŒ£αˆ otherwise 0 α‹­αˆ°αŒ£αˆα’
Truth table for XNOR Gate
| A | B | output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |


αŠ₯αŠα‹šαˆ… Logic Gates α‰ Digital circuits α‹αˆ΅αŒ₯ α‹αˆ΅α‰₯ሡα‰₯ የlogic αˆ΅αˆ«α‹Žα‰½αŠ• αˆˆαˆ˜αˆ΅αˆ«α‰΅ α‰ α‰°αˆˆα‹«α‹© αˆ˜αŠ•αŒˆα‹Άα‰½ ሊጣመሩ α‹­α‰½αˆ‹αˆ‰α’ Binary data αˆˆαˆ›α‰€αŠα‰£α‰ αˆ­ αŠ₯αŠ“ αˆˆαˆ˜α‰†αŒ£αŒ αˆ­ α‰ computer Processor፣ memory chips αŠ₯αŠ“ αˆŒαˆŽα‰½ digital αˆ²αˆ΅α‰°αˆžα‰½ α‹²α‹›α‹­αŠ• αˆ‹α‹­ αŒ₯α‰…αˆ αˆ‹α‹­ α‹­α‹αˆ‹αˆ‰α’
Understanding logic gates is fundamental to the field of digital electronics.

#PyPioneers #G12_STB_Physics_2023_web #Python #LogicGates

@python_pioneers
@python_pioneers
@python_pioneers
πŸ‘6
⚑️⚑️⚑️⚑️⚑️⚑️⚑️⚑️⚑️⚑️

#What_is_Python_?

#Python:
>α‰₯α‹™ α‰°αŒ α‰ƒαˆ α‹«αˆˆα‹αŠ“ α‰ αˆ΅α‹α‰΅ αŒ₯α‰…αˆ αˆ‹α‹­ αŠ₯α‹¨α‹‹αˆˆ α‹«αˆˆ
>interpreted(α‹¨α‰°α‰°αˆ¨αŒŽαˆ˜/translated)
>object-oriented αŠ₯αŠ“
>dynamic semantics α‹«αˆˆα‹ general-purpose high-level programming language αŠα‹α’

αŠ₯αŠ“ Python α‹¨αˆšα‰£αˆ α‰΅αˆα‰… የαŠ₯ባα‰₯ ዝαˆͺα‹« αŠ₯αŠ•α‹³αˆˆ ታውቁ α‹­αˆ†αŠ“αˆα£ የPython programming language ሡም α‹¨αˆ˜αŒ£α‹ "Monty Python's Flying Circus" α‰°α‰₯ሎ αŠ¨αˆšαŒ αˆ«α‹ የቆየ α‹¨α‰’α‰’αˆ² α‰΄αˆŒα‰ͺα‹₯αŠ• αŠ αˆ΅α‰‚αŠ α‹΅αˆ«αˆ› αŠα‹α’

In honour of the TV show የPython programming language ፈጣር α‰ α‹šαˆ… ሡም αˆ°α‹¨αˆ˜α‹α’

#Who_created_Python_?

ከPython features αŠ αŠ•α‹΅ α‹¨αˆšαŒˆαˆ­αˆ ነገር α‰’αŠ–αˆ­ α‹¨αŠ αŠ•α‹΅ αˆ°α‹ α‰₯ቻ personal work αˆ˜αˆ†αŠ‘ αŠα‹α’ α‰₯α‹™α‹αŠ• αŒŠα‹œ αŠ α‹³α‹²αˆ΅ programming languages α‹¨αˆšαˆαŒ αˆ©α‰΅ αŠ₯αŠ“ publish α‹¨αˆšα‹°αˆ¨αŒ‰α‰΅ α‰₯α‹™ professionals α‰ αˆšα‰€αŒ₯ሩ α‰΅αˆαˆα‰… companies α‹αˆ΅αŒ₯ αŠα‹α’

αŠ₯αŠ“αˆ α‰₯α‹™ αˆ°α‹Žα‰½ αˆ΅αˆˆαˆšαˆ³α‰°α‹ α‰ projectኑ αˆ‹α‹­ α‹¨α‰°αˆ³α‰°α‰ αˆ°α‹Žα‰½αŠ• αˆαˆ‰ αˆ˜α‹˜αˆ­α‹˜αˆ­ α‹­αŠ¨α‰₯α‹³αˆα’ αŒαŠ• python αŠ₯α‹šαˆ… αŒ‹αˆ­ exception αŠα‹α’

Their authors α‹¨αˆšα‰³α‹ˆα‰ programming languages α‰₯α‹™αˆ α‹¨αˆ‰αˆα’ Python α‹¨α‰°αˆαŒ αˆ¨α‹  α‰ 1956 α‰ Haarlem α‰ α‰°α‹ˆαˆˆα‹° Guido van Rossum α‰ α‰°α‰£αˆˆ αŠ”α‹˜αˆ­αˆ‹αŠ•α‹³α‹Š αŠα‹α’. Of course, Guido van Rossum did not develop and evolve all the Python components himself.

Python α‰ α‹“αˆˆαˆ α‹™αˆͺα‹« በፍαŒ₯αŠα‰΅ α‹¨α‰°αˆ΅α‹α‹α‹ α‰ αˆΊα‹Žα‰½ α‹¨αˆšα‰†αŒ αˆ© (α‰ αŒ£αˆ α‰₯α‹™αˆ α‹¨αˆ›α‹­α‰³α‹ˆα‰) programmers ፣ testers ፣ users αŠ₯αŠ“ enthusiasts α‰€αŒ£α‹­αŠα‰΅ α‹«αˆˆα‹ αˆ₯ራ α‹αŒ€α‰΅ αŠα‹ ፣ but it must be said that the very first idea (the seed from which Python sprouted) came to one head - Guido's.

..ይቀαŒ₯αˆ‹αˆ

@python_pioneers
⚑️⚑️⚑️⚑️⚑️⚑️⚑️⚑️⚑️
❀5
#Python_Versions

α‰€αŒ£α‹­ α‰΅αˆαˆ…αˆ­α‰³α‰½αŠ• ሡለ Python Versions αŠα‹α£ PythonαŠ• α‰ αˆ«αˆ³α‰½αŠ• α‰‹αŠ•α‰‹(α‰ αŠ αˆ›αˆ­αŠ›) αŠ₯αŠ•αˆ›αˆ­α’

Stay Tuned!

@python_pioneers
πŸ‘2❀1
PYTHON ON WINDOWS

የWindows α‰°αŒ α‰ƒαˆšα‹Žα‰½ α‹¨αˆšαŠ¨α‰°αˆ‰α‰΅αŠ• steps α‰ αˆ˜αŠ¨α‰°αˆ pythonαŠ• install αˆ›α‹΅αˆ¨αŒ α‰΅α‰½αˆ‹αˆ‹α‰½αˆα’

1. Download Python: Go to the official Python website (python.org) and download the latest version of Python for Windows.

2. Run the Installer: Once the download is complete, locate the downloaded file and double-click to run the installer.

3. Install Python: Click on the "Install Now" button to begin the installation process. The installer will copy files and configure Python on your system.

4. Verify Installation: Once the installation is complete, open the command prompt and type python --version to verify that Python has been installed correctly.

You should see the version number of Python that you installed.

That's it! Python is now installed on your Windows system, and you can start writing and running Python code.

Installation αˆ‚α‹°α‰±αŠ• α‹¨αˆšα‹«αˆ³α‹­ vedio link ከሡር αŠ₯αŠ•αˆˆα‰…αˆ‹α‰½αŠ‹αˆˆαŠ•

If you face any problems, let us know.⚑

#Windows
#Python

@python_pioneers
πŸ‘4
INSERTION OF LIST ELEMENTS

αŠ αŠ•α‹΅ 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.

An argument refers to the value that is passed to a function or method when it is called.

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
Lambda Functions in Python

Lambda functions α‰ αˆŒαˆ‹ αˆ΅αˆ›α‰Έα‹ anonymous functions α‰  Python Programming language α‹αˆ΅αŒ₯ at a runtime አጭር αŠ₯αŠ“ unnamed functions αŠ₯αŠ•α‹΅αŠ•αˆαŒ₯ር α‹«αŒα‹™αŠ“αˆα’ αˆŒαˆ‹ ቦታ αˆ˜αŒ α‰€αˆ α‹«αˆ›αŠ•αˆαˆαŒˆα‹αŠ• function α‰ αŠ αŠ•α‹΅ ቦታ α‰₯ቻ αŠ₯αŠ•α‹΅αŠ•αˆαŒ₯ር α‹­αˆ¨α‹±αŠ“αˆα’

What is a Lambda Function?

Lambda function α‹¨αˆαˆˆαŒαŠα‹αŠ• α‹«αˆ…αˆ argument α‹­α‹ˆαˆ΅α‹³αˆ ነገር αŒαŠ• αŠ αŠ•α‹΅ expression α‰₯ቻ αŠα‹ α‹¨αˆšα‰€α‰ αˆˆα‹α’ Expression ኑ evaluated αŠ¨αˆ†αŠ α‰ α‹ƒαˆ‹ value return α‹­α‹°αˆ¨αŒ‹αˆα’

The syntax for a lambda function is:

lambda arguments: expression

የlambda functions α‰αˆα α‰£αˆ…αˆͺያቡ

1. Anonymous: Lambda functions ሡም α‹¨αˆ‹α‰Έα‹αˆα£ that means they're anonymous.

2. Single Expression: αŠ αŠ•α‹΅ expression α‰₯ቻ αŠα‹ α‹¨αˆšα‹­α‹™α‰΅α£ α‹­αˆ… α‹°αŒαˆž ከregular functions less powerful α‹«α‹°αˆ­αŒ‹α‰Έα‹‹αˆα’

3. Can Take Multiple Arguments: α‰₯α‹™ argument α‹¨αˆ˜α‰€α‰ αˆ αŠ α‰…αˆ αŠ αˆ‹α‰Έα‹α’

Lambda function ከregular function α‰ syntax αŠ₯αŠ•α‹΄α‰΅ αŠ₯αŠ•α‹°αˆšαˆˆα‹­ ከሡር α‰£αˆˆα‹ ምሳሌ αˆ˜αˆ¨α‹³α‰΅ α‹­α‰»αˆ‹αˆα’

ምሳሌ : Basic Lambda Function

# Regular function
def add(x, y):
return x + y

# Lambda function
add_lambda = lambda x, y: x + y

print(add(2, 3)) # Output: 5
print(add_lambda(2, 3)) # Output: 5

to be contd...

#LambdaFunctions
#Functions
#Python

@python_pioneers
πŸš€ Attention Python Pioneers! πŸš€

New Python practice problems are coming soon! 🐍 Perfect for all skill levelsβ€”get ready to level up your coding!

Stay tuned! πŸ’»πŸ”₯

#PythonPioneers
#Python
#Coding

@python_pioneers
@python_pioneers
πŸ”₯1
HeyπŸ‘‹ Python Pioneers! Continuing our lesson on logic gates, we'll explore the next 5 types of gates: NOT, NOR, OR, XNOR and XNOR gates, and how they are used to build complex circuits.
Stay tuned!
...
3. NOT Gateፑ

- የ NOT Gate፣ αŠ₯αŠ•α‹²αˆαˆ Inverter α‰°α‰₯ሎ α‹¨αˆšαŒ αˆ«α‹α£ ከInput α‰°α‰ƒαˆ«αŠ’ α‹¨αˆ†αŠ output α‹­αˆ°αŒ£αˆα’ Input 0 αŠ¨αˆ†αŠ, α‹αŒ€α‰± 1 αŠα‹α£ αŠ₯αŠ“ α‰ α‰°α‰ƒαˆ«αŠ’α‹ Input 1 αŠ¨αˆ†αŠ the output 0 α‹­αˆ†αŠ“αˆα’ It can take only one Input
Truth table for NOT Gate
| A | Output |
|-----|---------|
| 0 | 1 |
| 1 | 0 |

4. NAND Gateፑ

- የAND Gate αŠ₯αŠ“ የNOT Gate αŒ₯ምር αˆ²αˆ†αŠ• αˆαˆ‰αˆ Inputs 1 αˆ²αˆ†αŠ‘ α‰₯ቻ 0 α‹­αˆ°αŒ£αˆ and vice versa
αˆ˜αŒ€αˆ˜αˆͺα‹« αˆ‹α‹­ AND ቀαŒ₯ሎ α‹°αŒαˆž NOT
Truth table for NAND Gate
| A | B| Output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |

5 NOR Gateፑ

- የ NOR Gate የOR Gate αŠ₯αŠ“ የNOT Gate combination αŠα‹α’
αˆ˜αŒ€αˆ˜αˆͺα‹« αˆ‹α‹­ OR ቀαŒ₯ሎ α‹°αŒαˆž NOT
αˆαˆ‰αˆ Inputs 0 αˆ²αˆ†αŠ‘ α‰₯ቻ 1 α‹­αˆ°αŒ£αˆ and otherwise 0 α‹­αˆ°αŒ£αˆα’

Truth table for NOR Gate
| A | B | Output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |


6.XOR Gateፑ

- የ XOR Gate(exclusive OR) Inputs α‹¨α‰°αˆˆα‹«α‹© αŠ¨αˆ†αŠ‘ 1 α‹αŒ€α‰΅ α‹­αˆ°αŒ£αˆ otherwise 0
Truth table for XOR Gate
| A | B | output |
|---|---|-------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |

7. XNOR Gateፑ

XNOR Gate(exclusive NOR) Inputs α‰°αˆ˜αˆ³αˆ³α‹­ αŠ¨αˆ†αŠ‘ 1 α‹­αˆ°αŒ£αˆ otherwise 0 α‹­αˆ°αŒ£αˆα’
Truth table for XNOR Gate
| A | B | output |
|---|---|-------|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |


αŠ₯αŠα‹šαˆ… Logic Gates α‰ Digital circuits α‹αˆ΅αŒ₯ α‹αˆ΅α‰₯ሡα‰₯ የlogic αˆ΅αˆ«α‹Žα‰½αŠ• αˆˆαˆ˜αˆ΅αˆ«α‰΅ α‰ α‰°αˆˆα‹«α‹© αˆ˜αŠ•αŒˆα‹Άα‰½ ሊጣመሩ α‹­α‰½αˆ‹αˆ‰α’ Binary data αˆˆαˆ›α‰€αŠα‰£α‰ αˆ­ αŠ₯αŠ“ αˆˆαˆ˜α‰†αŒ£αŒ αˆ­ α‰ computer Processor፣ memory chips αŠ₯αŠ“ αˆŒαˆŽα‰½ digital αˆ²αˆ΅α‰°αˆžα‰½ α‹²α‹›α‹­αŠ• αˆ‹α‹­ αŒ₯α‰…αˆ αˆ‹α‹­ α‹­α‹αˆ‹αˆ‰α’
Understanding logic gates is fundamental to the field of digital electronics.

#PythonPioneers #G12_STB_Physics_2023_web #Python #LogicGates

@python_pioneers
πŸ‘2