Python Pioneers: A Beginner's Guide 🇪🇹 pinned «For new subscribers ከነባለፈው የተማርናቸውን ትምህርቶች ለማግኘት ከፈለጋችሁ ወደ ላይ scroll አርጉ👍»
What's your passion?⚡
Being a :
- Software engineer
- Computer scientist
- Web developer
Here you can create a smooth path to your goal by practicing with us.
#Quotes
@python_pioneers
@python_pioneers
Being a :
- Software engineer
- Computer scientist
- Web developer
Here you can create a smooth path to your goal by practicing with us.
#Quotes
@python_pioneers
@python_pioneers
👍9🥰4👏4❤1
⚡LET'S TEST OURSELVES WITH THIS QUESTION⚡
❓Which of the following lines of codes do this:
1. Enter in to a directory named storage
2. Create a folder named new_folder_1 and new_folder_2
3. Lists files in the directory including thier permission info
4. Remove directory new_folder_2
5. Go to the home directory
6. Exit from the terminal
a.
b.
``
c.
d.
``
❗Comment your answer.
❗Don't hesitate to ask any questions related to our topic
#Questions
@python_pioneers
@python_pioneers
❓Which of the following lines of codes do this:
1. Enter in to a directory named storage
2. Create a folder named new_folder_1 and new_folder_2
3. Lists files in the directory including thier permission info
4. Remove directory new_folder_2
5. Go to the home directory
6. Exit from the terminal
a.
cd storage
mkdir new_folder_1
ls -l
rmdir new_folder_1
cd ..
exit
b.
``
shell
cd storage
makekdir new_folder_1 new_folder_2
ls -F
rmdir new_folder_2
cd ..
exit
``c.
cd storage
mkdir new_folder_1 new_folder_2
ls -l
rmdir new_folder_2
cd ..
exit
d.
``
shell
cd storage
mkdir new_folder_1 new_folder_2
ls -a
mkdir new_folder_2
cd ..
exit
``❗Comment your answer.
❗Don't hesitate to ask any questions related to our topic
#Questions
@python_pioneers
@python_pioneers
👍2🥰1
What is Shell Scripting?
Shell Scripting shell በቅደም ተከተል ተከታታይ ትዕዛዞችን እንዲፈጽም የመጻፍ ሂደት ነው።
Shell operating system ውስጥ command interpreter(አስተርጓሚ) ነው, ለምሳሌ Bash in Unix-like systems.
It allows users to automate tasks, perform system administration, manipulate files and directories, and interact with the operating system through the command line interface.
ከነባለፈው commands execute እያረግን የነበረው ተራ በተራ እየፃፍን ነበር ግን shell noscript በመጠቀም the whole bunch of code in our noscript, sequence ጠብቆ execute እንዲሆን እናረገዋለን።
Getting started: Steps to write a shell noscript
#1. Choose a shell፡ በጣም የተለመደው Shell bash (Bourne Again Shell) ሲሆን ይህም በብዙ Unix-like systems ላይ default ነው።
#2. Setup your environment፡ Open a terminal or command prompt on your system.
#3. Script ፋይል መፍጠር፡ Text editors like Vim, nano, or any other other text editor በመጠቀም በ.sh extension የሚያልቅ noscript መፍጠር፣ ለምሳሌ new_noscript.sh
Extension ምንለው ከfile name ቀጥሎ የሚመጣ የፋይሉን type ወይም format የሚነግረን የfile name part ነው። ለምሳሌ sample.txt ላይ በመጨረሻ ያለው .txt extension የሚነግረን ፋይሉ text file እንደሆነ ነው።
#4. Set Permissions (Unix-like Systems): Make the noscript executable by running chmod +x new_noscript.sh.
...ይቀጥላል
#ShellScripting
@python_pioneers
@python_pioneers
👍5⚡3👏1
📰 Latest Tech News:
New Breakthrough in Quantum Computing:
Scientists Achieve Stable Qubits at Room Temperature. This development marks a significant step towards practical quantum computers, with potential applications in cryptography, drug discovery, and more.
#QuantumComputing
#TechNews
@python_pioneers
New Breakthrough in Quantum Computing:
Scientists Achieve Stable Qubits at Room Temperature. This development marks a significant step towards practical quantum computers, with potential applications in cryptography, drug discovery, and more.
#QuantumComputing
#TechNews
@python_pioneers
👍6⚡1🥰1
📢 Breaking News: Commercial Bank of Ethiopia (CBE) faced a system problem last night, resulting in service disruptions across branches, mobile banking, and internet banking.
The incident also led to a loss of funds. However, CBE has swiftly addressed the issue and resumed operations.
#CBE
#TechNews
@python_pioneers
The incident also led to a loss of funds. However, CBE has swiftly addressed the issue and resumed operations.
#CBE
#TechNews
@python_pioneers
😱4👍1😈1
🏆 ቀድሞ ለመለሰ የ10 ብር ካርድ! 🏆
Be the first to provide the correct answer, and you'll win a 10 Birr card!
#meriaddis
#Questions
@python_pioneers
Be the first to provide the correct answer, and you'll win a 10 Birr card!
#meriaddis
#Questions
@python_pioneers
👍2👏1
1. From the first two lines የምንረዳው ነገር 6 ኮዱ ውስጥ እንደሌለ ነው
2.From line 4, 8 ትክክለኛ ቁጥር ስላልሆነ the only right and correctly placed number is 2
3.From line 3 since 6 is not one of the numbers, the two correct numbers are 2 and 0 but wrongly placed
4.Because we know the correct place of 2, 0 must be placed in the first box
5.finally, መሀከል የሚቀመጠውን ቁጥር ለማወቅ we will see the 2nd line, from this since 6 is not correct. 1 or 4 can be correct.
From this assumption 4 must be the middle number because the number 1 can't be the right number while it is wrongly placed in line 2.
So the correct numbers or code is : 042
The winner is : @Moon4046
#Answer
@python_pioneers
2.From line 4, 8 ትክክለኛ ቁጥር ስላልሆነ the only right and correctly placed number is 2
3.From line 3 since 6 is not one of the numbers, the two correct numbers are 2 and 0 but wrongly placed
4.Because we know the correct place of 2, 0 must be placed in the first box
5.finally, መሀከል የሚቀመጠውን ቁጥር ለማወቅ we will see the 2nd line, from this since 6 is not correct. 1 or 4 can be correct.
From this assumption 4 must be the middle number because the number 1 can't be the right number while it is wrongly placed in line 2.
So the correct numbers or code is : 042
The winner is : @Moon4046
#Answer
@python_pioneers
👍5
አድስ 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 noscripting ዋና purpose tasks automate ለማረግ ነው። ማለትም commands አንድ በአንድ እየፃፍን terminal ላይ execute ከማረግ በአንዴ noscript እንፅፍና ስህተት/ bug እስከሌለበት ድረስ every lines will be executed one after the other.
ለምሳሌ ፡
አንድ "Hello, Ethiopia!" ብሎ terminal ላይ print የሚያረግ የshell noscript እንፃፍ፣ ሙሉ ሂደቱን ለመረዳት ከላይ ያለውን አጭር 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/ ብለን ከላይ የፃፍነው noscriptu በ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 noscript 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 noscript file.
nano የምትጠቀሙ ከሆነ መጀመሪያ ላይ "CTRL - O" to save the file then "CTRl - X" to exit from the text editor.
3. በቀጣይ የምናረገው noscript ፋይሉን executable ማረግ ነው: ወይም permission መስጠት ነው for the file to be executed.
ስለ file permission በቀጣይ እንማራለን but for now just do this.
chmod +x hello.sh4. በመጨረሻ የቀረን ነገር noscriptun run ማረግ ነው፣ to do this:
./hello.shይሄ noscript 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