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
#แ แฅแจแ_แฅแแแญ
#แแฐแแปแฝแแ_แแแ แ_แฅแแณแตแจแฑ
แตแแฝ แตแแฐแฃแฝแแ แฅแแแฐแแแแ!
แ @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
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
แจแแฌ แ แแแฃ แ 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
- แจ 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
#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#line_1 "#!/bin/bash" /shebang line/ แฅแแ แจแแญ แจแแแแ scriptu แ bash shell interpreter execute แฅแแฒแแแแ แแ แข
# This is a comment
echo "Hello, Ethiopia!"
แ 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.sh4. แ แแจแจแป แจแแจแ แแแญ 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
#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
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