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
#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
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
β‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈ
#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
αα£α α΅αα αα³α½α α΅α 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
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
α¨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α‘ αα¨α¨α» αα ααα’
ααα³α:
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
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 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
to be contd...
#LambdaFunctions
#Functions
#Python
@python_pioneers
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
80+ Python Coding Challenges for Beginners.pdf
525 KB
Check out this PDFs filled with interactive Python problems and their solutions. Keep Practicing
#python_pioneers
@python_pioneers
#python_pioneers
@python_pioneers
π2
π 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
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
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