Python Pioneers: A Beginner's Guide ๐Ÿ‡ช๐Ÿ‡น
8.65K 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
Python Pioneers: A Beginner's Guide ๐Ÿ‡ช๐Ÿ‡น via @vote
แˆฐแ‹Žแ‰ฝ แ‰ตแˆแˆ…แˆญแ‰ฑ ๐Ÿ†— แАแ‹แฃ แ‰ฐแˆ˜แ‰ฝแ‰ทแ‰ฝแ‹ƒแˆแฃ แŠฅแŠ•แ‰€แŒฅแˆ? anonymous poll ๐Ÿ‘ โ€“ 40 ๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘ 100% ๐Ÿ‘Ž โ–ซ๏ธ 0% ๐Ÿ‘ฅ 40 people voted so far.
We thankyou all for your vote...
แ‹ตแˆแŒฝ แˆตแˆˆแˆฐแŒฃแ‰ฝแˆแŠ• แŠฅแŠ“แˆ˜แˆฐแŒแŠ“แˆˆแŠ•!
แ‰  @Python_Pioneers แ‹แˆตแŒฅแฃ แ‹จแˆ˜แˆ›แˆญ แˆ‚แ‹ฐแ‰ฑแŠ• แ‰ แ‰ฐแ‰ปแˆˆ แˆ˜แŒ แŠ• แˆ›แˆซแŠช แŠฅแŠ“ แŠ แˆณแ‰ณแŠ แˆˆแˆ›แ‹ตแˆจแŒ แ‹แŒแŒ แАแŠ•แฃ แŠฅแŠ“แˆ แ‹ตแŒ‹แ‹แ‰ฝแˆ แŠ แ‹ญแˆˆแ‹จแŠ•แข
๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ
แˆ˜แˆปแˆปแˆ แŠฅแŠ•แ‹ตแŠ•แ‰€แŒฅแˆ แŠ แˆตแ‰ฐแ‹ซแ‹จแ‰ถแ‰ฝแŠ• แ‹ˆแ‹ญแˆ แŠฅแˆญแˆ›แ‰ต แŠจแˆ˜แˆตแŒ แ‰ต แ‹ˆแ‹ฐแŠ‹แˆ‹ แŠฅแŠ•แ‹ณแ‰ตแ‰ แˆ‰แข
#PythonPioneers
#แŠ แ‰ฅแˆจแŠ•_แŠฅแŠ•แˆ›แˆญ
#แŒ“แ‹ฐแŠžแ‰ปแ‰ฝแˆแŠ•_แˆ˜แŒ‹แ‰ แ‹_แŠฅแŠ•แ‹ณแ‰ตแˆจแˆฑ
๐Ÿ‘2๐Ÿ”ฅ2
Our upcoming lesson on #Logic_Gates is pending...
Logic gates แ‰ แ‰€แŒฅแ‰ณ แŠจPython แŒ‹แˆญ แ‹จแ‰ฐแˆณแˆฐแˆฉ แ‰ฃแ‹ญแˆ†แŠ‘แˆ แˆ˜แˆญแˆ†แ‰ปแ‰ธแ‹แŠ• แˆ˜แˆจแ‹ณแ‰ณแ‰ฝแŠ• แ‰ แ‰ฐแˆˆแ‹ญ Digital circuits แŠฅแŠ“ Microcontrollers แŒ‹แˆญ แˆตแŠ•แˆฐแˆซ แ‹จPython แ•แˆฎแŒแˆซแˆšแŠ•แŒ แŠญแˆ…แˆŽแ‰ณแ‰ฝแŠ•แŠ• แ‰ แŠฅแŒ…แŒ‰ แ‹ซแˆณแ‹ตแŒ‹แˆแข แ‰ แ‹šแˆ… แˆ˜แˆฐแˆจแ‰ณแ‹Š แˆ€แˆณแ‰ฅ แˆ‹แ‹ญ แˆˆแˆšแ‹ซแ‰ฅแˆซแˆซ แŠญแแˆˆ แŒŠแ‹œ แ‹ญแ‰€แˆ‹แ‰€แˆ‰แŠ•แข
Share your insight and ideas in the comment section.
#PythonPioneers
#LogicGates

@python_pioneers
@python_pioneers
@python_pioneers
๐Ÿ‘3
#Logic_gates แ‹จdigital circuits building block แŠ“แ‰ธแ‹แข แ‰ แŠ แŠ•แ‹ต แ‹ˆแ‹ญแˆ แŠจแ‹šแ‹ซ แ‰ แˆ‹แ‹ญ แ‰ แˆ†แŠ‘ binary inputs แˆ‹แ‹ญ แˆ˜แˆฐแˆจแ‰ณแ‹Š แ‹จแˆŽแŒ‚แŠญ แˆตแˆซแ‹Žแ‰ฝแŠ• แ‹ซแŠจแŠ“แ‹แŠ“แˆ‰ แŠฅแŠ“ single binary output แ‹ญแˆฐแŒฃแˆ‰แข แ‰ฅแ‹™ แŠ แ‹ญแАแ‰ต Logic gates แŠ แˆ‰แฃ แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑแˆ แ‹จแˆซแˆฑ แ‹จแˆ†แА แˆแ‹ฉ แ‰ฐแŒแ‰ฃแˆญ แŠฅแŠ“ แŠ แˆ แˆซแˆญ แŠ แˆˆแ‹แข

แŠจแ‹›แˆฌ แ‰ แŠ‹แˆ‹แฃ แ‰ Binary language "1" แˆตแŠ•แˆแฃ แ‰ แˆ˜แˆ แˆจแ‰ฑ voltage แŠ แˆˆ แŠฅแ‹ซแˆแŠ• แАแ‹แข แ‰ แ‰ฐแ‰ƒแˆซแŠ’แ‹ "0" แˆตแŠ•แˆ แ‹จvoltage แŠ แˆˆแˆ˜แŠ–แˆญแŠ• แ‹ซแˆ˜แˆˆแŠญแ‰ณแˆแข แ‰ แŠฎแˆแ’แ‹ฉแ‰ฐแˆญ แˆฒแˆตแ‰ฐแˆ แ‹แˆตแŒฅ แ‹จแŠคแˆŒแŠญแ‰ตแˆชแŠญ แˆแˆแŠญแ‰ถแ‰ฝแŠ• True/False แ‹ˆแ‹ญแˆ ON/OFF State แ‹จแˆšแ‹ซแˆ˜แˆˆแŠญแ‰ต แ‰€แˆ‹แˆ แˆ˜แŠ•แŒˆแ‹ต แАแ‹แข แŠฅแŠ“แˆ แˆตแˆˆ Python แˆตแŠ•แŒ€แˆแˆญ แ‰ แˆฐแŠแ‹ แŠฅแŠ“แ‹ˆแˆซแ‰ แ‰ณแˆˆแŠ•แข

#1_AND_Gate:
- แ‹จAND Gate 1 แ‹แŒคแ‰ต แ‹จแˆšแˆฐแŒ แ‹ แˆแˆ‰แˆ inputs 1 แŠจแˆ†แŠ‘ แ‰ฅแ‰ป แАแ‹แข
Otherwise แŒแŠ• 0 แ‹ญแˆฐแŒฃแˆแข
The multiplication sign (.) is referred to as AND in #Boolean_algebra. The Boolean expression for this is:
y = A.B
Truth Table for AND Gate
assume that A and B are input terminals
| A | B| Output |
|---|---|-------|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |

#PythonPioneers
#LogicGates

@python_pioneers
@python_pioneers
@python_pioneers
โค1๐Ÿ‘1
#2_OR_Gate:
- แ‹จ OR gate แŠจInputs แ‹แˆตแŒฅ แŠ แŠ•แ‹ฑ "1" แŠจแˆ†แА output "1" แ‹ญแˆฐแŒฃแˆแข
แˆแˆ‰แˆ Inputs 0 แŠจแˆ†แŠ‘ แ‰ฅแ‰ป แАแ‹ "0" แ‹จแˆšแˆฐแŒ แ‹แข

In #Boolean_algebra, the addition sign (+) is referred to as OR. The Boolean expression for OR is:
y = A + B
but that doesn't mean if we have two inputs "1" & "1" then 1 + 1 = 2แฃ
แ‰ logic 1 + 1 = 1 แАแ‹ แ‹จแˆšแˆ†แАแ‹แข ๐Ÿ˜ณ
voltage + voltage equals voltage, not 2voltage๐Ÿ˜

แŠ แ‰ตแˆญแˆฑ "0" แŠฅแŠ“ "1" แˆตแŠ•แˆ It's all about the absence or presence of voltage แˆŒแˆ‹ แˆแŠ•แˆ แ‰ณแˆชแŠญ แ‹จแˆˆแ‹แˆแข
แŠ แŠ•แ‹ต แ‹จelectric แˆฝแ‰ฆ แŠ แˆตแ‰กแŠ“ "1" แˆตแŠ•แˆ the wire is connected to a voltage source or it's conducting electricity and "0" แˆตแŠ•แˆ the wire is not connected to any voltage source แ‹ˆแ‹ญแˆ the line is open แˆ›แˆˆแ‰ต แАแ‹แข
Truth table for OR Gate
| A | B | Output |
|---|---|-------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
To be continued...
แˆตแˆˆ NOT, NOR, NAND... Gates แ‰ แ‰€แŒฃแ‹ญ แŠฅแŠ“แ‹ซแˆˆแŠ•

#G12_Physics_STB_2023_web
#PythonPioneers
#LogicGates

@python_pioneers
@python_pioneers
@python_pioneers
๐Ÿ‘4โค1
ShellBasics.pdf
528.5 KB
Check out the new PDF we just uploaded! It covers basic shell commands. Enjoy learning!

#PythonPioneers

@python_pioneers
๐Ÿ‘1
More On Shell Scripting
แ‰ฃแˆˆแˆแ‹ แŠฅแŠ•แ‹ณแ‹จแАแ‹ แ‹จshell scripting แ‹‹แŠ“ purpose tasks automate แˆˆแˆ›แˆจแŒ แАแ‹แข แˆ›แˆˆแ‰ตแˆ commands แŠ แŠ•แ‹ต แ‰ แŠ แŠ•แ‹ต แŠฅแ‹จแƒแแŠ• terminal แˆ‹แ‹ญ execute แŠจแˆ›แˆจแŒ แ‰ แŠ แŠ•แ‹ด script แŠฅแŠ•แ…แแŠ“ แˆตแˆ…แ‰ฐแ‰ต/ bug แŠฅแˆตแŠจแˆŒแˆˆแ‰ แ‰ต แ‹ตแˆจแˆต every lines will be executed one after the other.

แˆˆแˆแˆณแˆŒ แก
แŠ แŠ•แ‹ต "Hello, Ethiopia!" แ‰ฅแˆŽ terminal แˆ‹แ‹ญ print แ‹จแˆšแ‹ซแˆจแŒ แ‹จshell script แŠฅแŠ•แƒแแฃ แˆ™แˆ‰ แˆ‚แ‹ฐแ‰ฑแŠ• แˆˆแˆ˜แˆจแ‹ณแ‰ต แŠจแˆ‹แ‹ญ แ‹ซแˆˆแ‹แŠ• แŠ แŒญแˆญ video แ‰ฐแˆ˜แˆแŠจแ‰ฑแข

1. แ‰ แˆ˜แŒ€แˆ˜แˆชแ‹ซ text editor แŠฅแŠ•แŠจแแ‰ณแˆˆแŠ• (such as nano, vim, or gedit) and hello.sh แ‹จแ‰ฐแ‰ฃแˆˆ file แŠฅแŠ•แˆแŒฅแˆซแˆˆแŠ•แข แŠฅแ‹šแˆ… video แˆ‹แ‹ญ แ‹จแ‰ฐแŒ แ‰€แˆแАแ‹ text editor nano แАแ‹แข
nano hello.sh
แŠจแ‹› แ‹แ‹ญแˆ‰ แ‹แˆตแŒฅ แŠฅแАแ‹šแˆ…แŠ• แАแŒˆแˆฎแ‰ฝ แŠฅแŠ•แ…แ‹แˆˆแŠ•

#!/bin/bash
# This is a comment
echo "Hello, Ethiopia!"
#line_1 "#!/bin/bash" /shebang line/ แ‰ฅแˆˆแŠ• แŠจแˆ‹แ‹ญ แ‹จแƒแแАแ‹ scriptu แ‰ bash shell interpreter execute แŠฅแŠ•แ‹ฒแˆ†แŠ•แˆแŠ• แАแ‹ แข

แ‰ programming comment แ‹จแˆแŠ•แˆˆแ‹ a text still in the code yet not executed, แˆˆ shell Scripting comment แˆ˜แƒแ แŠจแˆแˆˆแŒแŠ• textun แ‰ "#" แŠฅแŠ•แŒ€แˆแˆซแˆˆแŠ•แข

แˆˆแˆแˆณแˆŒ the 2nd line of our script does nothing because it is a comment.

Interpreter แ‹จแˆแŠ•แˆˆแ‹ itself is a program that translates and executes code written in a high-level programming language in to machine code(which is understandable by the computer).

2. แŠจแ‹› แ‰ แ‹ƒแˆ‹ we will save our hello.sh script file.
nano แ‹จแˆแ‰ตแŒ แ‰€แˆ™ แŠจแˆ†แА แˆ˜แŒ€แˆ˜แˆชแ‹ซ แˆ‹แ‹ญ "CTRL - O" to save the file then "CTRl - X" to exit from the text editor.

3. แ‰ แ‰€แŒฃแ‹ญ แ‹จแˆแŠ“แˆจแŒˆแ‹ script แ‹แ‹ญแˆ‰แŠ• executable แˆ›แˆจแŒ แАแ‹: แ‹ˆแ‹ญแˆ permission แˆ˜แˆตแŒ แ‰ต แАแ‹ for the file to be executed.
แˆตแˆˆ file permission แ‰ แ‰€แŒฃแ‹ญ แŠฅแŠ•แˆ›แˆซแˆˆแŠ• but for now just do this.
chmod +x hello.sh
4. แ‰ แˆ˜แŒจแˆจแˆป แ‹จแ‰€แˆจแŠ• แАแŒˆแˆญ scriptun run แˆ›แˆจแŒ แАแ‹แฃ to do this:
./hello.sh
แ‹ญแˆ„ script run แˆตแŠ“แˆจแŒˆแ‹ bash interpreter แ‰ แˆ˜แŒ แ‰€แˆ the code runs and a text "Hello, Ethiopia!" is printed in our terminal, this was done by the command "echo".

แ‹ญแˆ… แ‰€แˆ‹แˆ แˆแˆณแˆŒ แАแ‹ แˆŒแˆŽแ‰ฝ แŠฎแ‹ถแ‰ฝแŠ• แ‰ แˆ˜แƒแ shell Scripting แ‰ฐแˆˆแˆ›แˆ˜แ‹ฑแข

#ShellScripting
#PythonPioneers

@python_pioneers
@python_pioneers
@python_pioneers
๐Ÿ‘3๐Ÿ”ฅ2
Let me share you something I have seen today while reading G12 Mathematics. I did not expect to find such things in a student's textbook. ๐Ÿ˜ณ๐Ÿ˜ณ

#G12_Mathematics_STB_2023_web
#PythonPioneers

@python_pioneers
๐Ÿ‘4๐Ÿ™ˆ3๐Ÿ˜1๐Ÿ˜ฑ1๐Ÿ’ฏ1
This media is not supported in your browser
VIEW IN TELEGRAM
Great progress!

Thank you for joining us on this learning journey. Get ready for an exciting start to our Python lessons next week - we're going to start from the basics! Stay tuned!

See the progress we have made so far from the short vedio above.

#PythonPioneers
#LearningTogether

@python_pioneers
๐Ÿ”ฅ5๐Ÿ‘3