แแฌ แจShell Scripting แแฃแญ lesson แญแแจแแแข
แฅแแณแซแแแฃแฝแโค๏ธ
@python_pioneers
แฅแแณแซแแแฃแฝแโค๏ธ
@python_pioneers
๐2
แ แตแต subscribers แแฐ แแญ scroll แ แแจแ แจแแฃแแแ แจแฐแแญแแธแแ แตแแ
แญแถแฝ แแแแต แตแฝแแแฝแ๐
๐5
Python Pioneers: A Beginner's Guide ๐ช๐น pinned ยซแ แตแต subscribers แแฐ แแญ scroll แ แแจแ แจแแฃแแแ แจแฐแแญแแธแแ แตแแ
แญแถแฝ แแแแต แตแฝแแแฝแ๐ยป
This media is not supported in your browser
VIEW IN TELEGRAM
More On Shell Scripting
แจvideoแแ แแฅแซแชแซ แจแแฃแญ post แแแแต แตแฝแแแฝแ ๐๐๐๐
#ShellScripting
@python_pioneers
@python_pioneers
แจvideoแแ แแฅแซแชแซ แจแแฃแญ post แแแแต แตแฝแแแฝแ ๐๐๐๐
#ShellScripting
@python_pioneers
@python_pioneers
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
"The Echo"
"A son and his father were walking on the mountains. Suddenly, his son falls, hurts himself and screams: "AAAhhhhh!!!".To his surprise, he hears the voice repeating, somewhere in the mountain: "AAAhhhhh!!!".
Curious, he yells: "Who are you?" He receives the answer: "Who are you?" And then he screams to the mountain: "I admire you!" The voice answers: "I admire you!"
Angered at the response, he screams: "Coward!" He receives the answer: "Coward!" He looks to his father and asks: "What's going on?"
The father smiles and says: "My son, pay attention." Again the man screams: "You are a champion!" The voice answers: "You are a champion!" The boy is surprised, but does not understand.
Then the father explains: "People call this echo, but really this is life. It gives you back everything you say or do. Our life is simply a reflection of our actions.
If you want more love in the world, create more love in your heart. If you want more competence in your team, improve your competence.
This relationship applies to everything, in all aspects of life. Life will give you back everything you have given to it. " Your life is not a coincidence. It's a reflection of you!
THE END
Source: @StoryPage
#EnglishStories
@python_pioneers
"A son and his father were walking on the mountains. Suddenly, his son falls, hurts himself and screams: "AAAhhhhh!!!".To his surprise, he hears the voice repeating, somewhere in the mountain: "AAAhhhhh!!!".
Curious, he yells: "Who are you?" He receives the answer: "Who are you?" And then he screams to the mountain: "I admire you!" The voice answers: "I admire you!"
Angered at the response, he screams: "Coward!" He receives the answer: "Coward!" He looks to his father and asks: "What's going on?"
The father smiles and says: "My son, pay attention." Again the man screams: "You are a champion!" The voice answers: "You are a champion!" The boy is surprised, but does not understand.
Then the father explains: "People call this echo, but really this is life. It gives you back everything you say or do. Our life is simply a reflection of our actions.
If you want more love in the world, create more love in your heart. If you want more competence in your team, improve your competence.
This relationship applies to everything, in all aspects of life. Life will give you back everything you have given to it. " Your life is not a coincidence. It's a reflection of you!
THE END
Source: @StoryPage
#EnglishStories
@python_pioneers
๐ฅ6โค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
แจแขแตแฎแตแซ แแแต แฃแแญ แจแซแณแธแ แซแแแแ แแแแฅ แจแแฐแฑ แแญแ แแฐแฐแแซแจ แแณแฆแฝ แซแตแฐแแแ แแแฐแฆแฝ แจแแฐแฑแตแ แแแแฅ แ แแแณแธแ แฅแแฒแแแฑ แซแตแแแ แ แจแแจแจแป แแ แแฌ แ
แณแ แแแขแต 14 แซแ แแแข
แ แแ แ แฉแ แฐแแ แฃแแฉ แแญ แซแแ แแ แฝแแญ แจแฒแตแฐแ แแญ แแญแ แถแญแต แฎแต แแญ แจแแฎแแซแแแ แ แฐแ แฐแจแฐแ แจแฐแแฃ แแ แ แแแแฑ แแ แฒแ แจแขแแแญแแฝแ แแจแฅ แฐแ แแแต แ แตแฐแณแฐแญ แ แตแณแแแแข
๐แฅแ แ แตแ แฐแตแ แแ แฐแญแฃแ แ แณแตแทแฝแ แจแฅแแแฐ แซแแแแ แแแแฅ แจแแฐแณแฝแ แฅแฉแ แฅแตแแแฑ แจแแแฐแแ แแ แฃ แจแแแ แจแแฌแ แจ @python_pioneers แแแแญแณแฝแ แแแข
#TIKVAH
#DaguJournal
@python_pioneers
แ แแ แ แฉแ แฐแแ แฃแแฉ แแญ แซแแ แแ แฝแแญ แจแฒแตแฐแ แแญ แแญแ แถแญแต แฎแต แแญ แจแแฎแแซแแแ แ แฐแ แฐแจแฐแ แจแฐแแฃ แแ แ แแแแฑ แแ แฒแ แจแขแแแญแแฝแ แแจแฅ แฐแ แแแต แ แตแฐแณแฐแญ แ แตแณแแแแข
๐แฅแ แ แตแ แฐแตแ แแ แฐแญแฃแ แ แณแตแทแฝแ แจแฅแแแฐ แซแแแแ แแแแฅ แจแแฐแณแฝแ แฅแฉแ แฅแตแแแฑ แจแแแฐแแ แแ แฃ แจแแแ แจแแฌแ แจ @python_pioneers แแแแญแณแฝแ แแแข
#TIKVAH
#DaguJournal
@python_pioneers
๐2๐2๐1๐จโ๐ป1
โโ Attention โโ
แฐแแ แจ @python_pioneers channel แคแฐแฐแฆแฝ แแฌ แแณ แจ 25 แฅแญ แจแ แจแญ แฐแแต แจแแซแธแแ แฅแซแ แญแแจแแแข แฅแแณแซแแแฃแฝแ!
Join our Telegram channel for a chance to win a 25 birr card! Answer the question and claim your prize. Don't miss out!
#Quiz
@python_pioneers
แฐแแ แจ @python_pioneers channel แคแฐแฐแฆแฝ แแฌ แแณ แจ 25 แฅแญ แจแ แจแญ แฐแแต แจแแซแธแแ แฅแซแ แญแแจแแแข แฅแแณแซแแแฃแฝแ!
Join our Telegram channel for a chance to win a 25 birr card! Answer the question and claim your prize. Don't miss out!
#Quiz
@python_pioneers
๐ฅ3
แ แแณแแต แแแฝ แตแแแญแแปแธแ แฅแซแแ 3 :00 แฐแฐแญแแแข
๐3
Here is the question ๐
โกAnswer the question and claim your prize.โก
แ แธแแ แจแแแแ แตแญแญแแ แแแตแ แแแแฑ brief description แจแแฐแฅ แแแข
GOOD LUCK!๐ค
แแแซแ แฅแตแ!๐ช
#Questions
@python_pioneers
@python_pioneers
โกAnswer the question and claim your prize.โก
แ แธแแ แจแแแแ แตแญแญแแ แแแตแ แแแแฑ brief description แจแแฐแฅ แแแข
GOOD LUCK!๐ค
แแแซแ แฅแตแ!๐ช
#Questions
@python_pioneers
@python_pioneers
๐ฅฐ1
๐แแแ แ แแแ guys แแแฝแแแ แตแแฐแณแตแแฝแ แ แฃแ แฅแแแฐแแแแ๐
โกHere is the answer for the questionโก
Using ฯ ~ 22/7
แแณแ แแ แซแ แ แแฐ แแญ แฅแแฐแจแแจ แแแแ แฃ แฐแแแฎ แจแแฃแ แจแแฌแต แ แซแ แแ แซแ แ volume แฅแแณแแ calculate แฅแแจแแ แณแญแแแญ แแแจแ แจแแฌแต แญแแ area แฅแแซแแแแแข
แแแแชแซ แฐแแแฎ แจแแฃแแ แจแแฌแต แ แซแ volume แฅแแแแแก
Volume of earth part dug out = (22/7) * (radius of opening)^2 * depth of the opening
= (22/7) * (7 m)^2 * 20 m
= (22/7) * 49 m^2 * 20 m
= 3080 m^3
แ แแฃแญ แฐแแ แณแญแแแญ แจแแจแแ แจแแฌแต area แฅแแแแแแแก
Area of remaining part = Total area of field - Area of opening
= (100 m * 42 m) - ((22/7) * (7 m)^2)
= 4200 m^2 - 154 m^2
โ 4046 m^2
แ แแจแจแป แฐแแ แแ แซแ แ height แแฐแแญ แจแ แฅแแณแ calculate แฅแแจแแแแก
Increase in level = Volume of earth / Area of remaining part
= 3080 m^3 / 4046 m^2
โ 0.76 m
แตแแแ the increase in the level of the field is approximately 0.76 meters แแญแ 76 cm แแแข
#Answers
@python_pioneers
@python_pioneers
Using ฯ ~ 22/7
แแณแ แแ แซแ แ แแฐ แแญ แฅแแฐแจแแจ แแแแ แฃ แฐแแแฎ แจแแฃแ แจแแฌแต แ แซแ แแ แซแ แ volume แฅแแณแแ calculate แฅแแจแแ แณแญแแแญ แแแจแ แจแแฌแต แญแแ area แฅแแซแแแแแข
แแแแชแซ แฐแแแฎ แจแแฃแแ แจแแฌแต แ แซแ volume แฅแแแแแก
Volume of earth part dug out = (22/7) * (radius of opening)^2 * depth of the opening
= (22/7) * (7 m)^2 * 20 m
= (22/7) * 49 m^2 * 20 m
= 3080 m^3
แ แแฃแญ แฐแแ แณแญแแแญ แจแแจแแ แจแแฌแต area แฅแแแแแแแก
Area of remaining part = Total area of field - Area of opening
= (100 m * 42 m) - ((22/7) * (7 m)^2)
= 4200 m^2 - 154 m^2
โ 4046 m^2
แ แแจแจแป แฐแแ แแ แซแ แ height แแฐแแญ แจแ แฅแแณแ calculate แฅแแจแแแแก
Increase in level = Volume of earth / Area of remaining part
= 3080 m^3 / 4046 m^2
โ 0.76 m
แตแแแ the increase in the level of the field is approximately 0.76 meters แแญแ 76 cm แแแข
#Answers
@python_pioneers
@python_pioneers
๐1
๐5๐ฅ1
The winners have received their prize๐
We thank you all for being part of us.
GOOD NIGHT!
@python_pioneers
We thank you all for being part of us.
GOOD NIGHT!
@python_pioneers
๐3๐ฅฐ1