Python Pioneers: A Beginner's Guide 🇪🇹
Installing Python on Termux 1. መጀመሪያ Termux app እንከፍታለን📱. 2. Packages Update እና Upgrade እናረጋለን: pkg update && pkg upgrade -y 3.በመጨረሻም Pythonን install እናረጋለን: pkg install python 4. በትክክል install እንዳረግን ለማረጋገጥ ደግሞ: python --version That's it! You're all…
⁉️If you face any difficulties during the installation, our door 🚪 is still open for questions ⁉️
PYTHON ON UBUNTU
አሁን ለUbuntu OS ተጠቃሚዎች እንዴት pythonን install ማረግ እንደሚችሉ እንመልከት
1. Open Terminal: You can open the terminal by pressing
2. Update Package Lists: It's a good practice to update the package lists before installing new software. Run the following command:
3. Install Python: Python is included in the base installation of Ubuntu, but you may want to install a specific version or ensure you have the latest version. To install Python 3.11, run:
4. Verify Installation: After the installation is complete, you can verify the installation by checking the Python version:
5. Optional: You may also want to install pip, the package installer for Python, if it's not installed by default:
That's it! You have successfully installed Python on your Ubuntu system. You can now start using Python by running
⁉️For any questions 🚪 knock knock 😁
#Ubuntu
#PythonInstallation
@python_pioneers
አሁን ለUbuntu OS ተጠቃሚዎች እንዴት pythonን install ማረግ እንደሚችሉ እንመልከት
1. Open Terminal: You can open the terminal by pressing
Ctrl + Alt + T or by searching for "Terminal" in the applications menu.2. Update Package Lists: It's a good practice to update the package lists before installing new software. Run the following command:
sudo apt update
3. Install Python: Python is included in the base installation of Ubuntu, but you may want to install a specific version or ensure you have the latest version. To install Python 3.11, run:
sudo apt install python3.11
4. Verify Installation: After the installation is complete, you can verify the installation by checking the Python version:
python3 --version
5. Optional: You may also want to install pip, the package installer for Python, if it's not installed by default:
sudo apt install python3-pip
That's it! You have successfully installed Python on your Ubuntu system. You can now start using Python by running
python3.⁉️For any questions 🚪 knock knock 😁
#Ubuntu
#PythonInstallation
@python_pioneers
👍2
This media is not supported in your browser
VIEW IN TELEGRAM
PYTHON ON UBUNTU
Read the post above👆 to have more insight about the installation process.
@python_pioneers
@python_pioneers
Read the post above👆 to have more insight about the installation process.
@python_pioneers
@python_pioneers
❤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
Which command is used to install Python on Termux?
Anonymous Quiz
33%
A) sudo apt install python
41%
B) pkg install python
9%
C) yum install python
17%
C) pip install python
What is the recommended method to install Python on Windows?
Anonymous Quiz
91%
A) Downloading and running the installer from python.org
2%
B) Using the Microsoft Store
5%
C) Installing via Chocolatey
2%
D) Compiling from source
Which version of Python is recommended for most users to install?
Anonymous Quiz
7%
A) Python 2
52%
B) Python 3
33%
C) Python 3.6
7%
D) Python 4
What command is commonly used to check the Python version installed on your system?
Anonymous Quiz
22%
A) python -v
16%
B) python version
6%
C) version python
57%
D) python --version
How do you start the Python interpreter on the terminal?
Anonymous Quiz
14%
A) python start
27%
B) run python
49%
C) python
11%
D) start python
ChatGPT was asked to generate memes that only AI would understand.
If you smiled - think about it. 🤖
#AI
@python_pioneers
If you smiled - think about it. 🤖
#AI
@python_pioneers
😁2
በዚህች አጭር story ደግሞ ምሽታችሁን ብሩህ አርጉ🌌
The Travelers and The Plane Tree
Two men were walking along one summer day. Soon it became too hot to go any further and, seeing a large plane tree nearby, they threw themselves on the ground to rest in its shade. Gazing up into the branches one man said to the other,
"What a useless tree this is. It does not have fruit or nuts that we can eat and we cannot even use its wood for anything."
"Don't be so ungrateful," rustled the tree in reply. "I am being extremely useful to you at this very moment, shielding you from the hot sun. And you call me a good-for-nothing!"
Moral: All of God's creations have a good purpose. We should never belittle God's blessings.
መልካም ምሽት!
#Story
@python_pioneers
The Travelers and The Plane Tree
Two men were walking along one summer day. Soon it became too hot to go any further and, seeing a large plane tree nearby, they threw themselves on the ground to rest in its shade. Gazing up into the branches one man said to the other,
"What a useless tree this is. It does not have fruit or nuts that we can eat and we cannot even use its wood for anything."
"Don't be so ungrateful," rustled the tree in reply. "I am being extremely useful to you at this very moment, shielding you from the hot sun. And you call me a good-for-nothing!"
Moral: All of God's creations have a good purpose. We should never belittle God's blessings.
መልካም ምሽት!
#Story
@python_pioneers
❤6👍3🙏1
📱 PyDroid: Your Python Playground on Android!
ለAndroid ተጠቃሚዎች python codes run ለማረግ ሌላኛው አማራጭ ነው።
🔗 Download the app from Play Store: https://play.google.com/store/apps/details?id=ru.iiec.pydroid3
With PyDroid, you can write, test, and debug Python code with ease, whether you're a beginner or an experienced developer.
Or for arm64 structure you can download the apk file we uploaded below 👇
@python_pioneers
ለAndroid ተጠቃሚዎች python codes run ለማረግ ሌላኛው አማራጭ ነው።
🔗 Download the app from Play Store: https://play.google.com/store/apps/details?id=ru.iiec.pydroid3
With PyDroid, you can write, test, and debug Python code with ease, whether you're a beginner or an experienced developer.
Or for arm64 structure you can download the apk file we uploaded below 👇
@python_pioneers
👍1
Being youthful is not just about age, but about being useful in every moment.
ወጣትነት ሀብት ነው፣ እግዚአብሔር ሲፈጥረን ይሄንን ሀብት በእያንዳንዳችን ውስጥ አስቀምጧል። ይሄ ሀብት ደግሞ በአሉታዊ ነገሮች መባከን የለበትም፣ አራዳነት መስሎን በማይረባ ነገር ላይ አናውለው። እያንዳንዷን moment invest አርገን ወጣትነታችንን ለመልካም ነገር እናውለው።
መልካም ቀን!
YOUTHFUL IS USEFUL!
@python_pioneers
ወጣትነት ሀብት ነው፣ እግዚአብሔር ሲፈጥረን ይሄንን ሀብት በእያንዳንዳችን ውስጥ አስቀምጧል። ይሄ ሀብት ደግሞ በአሉታዊ ነገሮች መባከን የለበትም፣ አራዳነት መስሎን በማይረባ ነገር ላይ አናውለው። እያንዳንዷን moment invest አርገን ወጣትነታችንን ለመልካም ነገር እናውለው።
መልካም ቀን!
YOUTHFUL IS USEFUL!
@python_pioneers
👍4❤3
The Python Interpreter
Interpreter ወይም በአማርኛ ተርጓሚ ልንለው እንችላለን፣ በHigh-level programming language የፃፍነውን code ወደ machine language የሚቀይር program እንደሆነ አይተን ነበር። ሌላው ደግሞ Python interpreted language እንደሆነም ጭምር አይተናል።
የPythonን language in our devices ስንጭን ከተጫኑት ነገሮች አንዱ Python interpreter ነው። Python interpreter የPython Programming statements ማንበብ እና እነሱን execute ማድረግ የሚችል ፕሮግራም ነው። Interpreterኡን በሁለት አይነት መንገዶች መጠቀም እንችላለን፡
I.Interactive mode እና
II.Script mode
In Interactive mode, Interpreterኡ እኛ python statements keyboard ላይ እስከምንፅፍ ይጠብቃል። አንድ ጊዜ አንድ valid የሆነ statement ከፃፍን execute ያረግና waits for another statement.
In Script mode, Interpreterኡ python statements የያዘ file ውስጥ ያሉትን contents አንድ በአንድ ያነባቸዋል።
ይህ file ደግሞ python program ወይም python noscript ይባላል። Interpreterኡ each statement ባነበበ ቁጥር execute ያረጋቸዋል።
Interactive Mode
Python interpreter የሆነ operating system ውስጥ ከጫንን በኋላ ወደ command-line በመሄድ Interpreterኡን በInteractive mode ማረግ እንችላለን። with the following command:
When the Python interpreter starts in interactive mode, እንደዚህ አይነት ነገር displayed ይሆናል።
ይህኛው👇 ምልክት የሚያሳየው Interpreterኡ የሆነ ነገር እንድትፅፉ እየጠበቀ መሆኑና የምትፅፉትን python statement execute ለማረግ ready እንደሆነ ነው።👇
...ይቀጥላል
@python_pioneers
@python_pioneers
Interpreter ወይም በአማርኛ ተርጓሚ ልንለው እንችላለን፣ በHigh-level programming language የፃፍነውን code ወደ machine language የሚቀይር program እንደሆነ አይተን ነበር። ሌላው ደግሞ Python interpreted language እንደሆነም ጭምር አይተናል።
የPythonን language in our devices ስንጭን ከተጫኑት ነገሮች አንዱ Python interpreter ነው። Python interpreter የPython Programming statements ማንበብ እና እነሱን execute ማድረግ የሚችል ፕሮግራም ነው። Interpreterኡን በሁለት አይነት መንገዶች መጠቀም እንችላለን፡
I.Interactive mode እና
II.Script mode
In Interactive mode, Interpreterኡ እኛ python statements keyboard ላይ እስከምንፅፍ ይጠብቃል። አንድ ጊዜ አንድ valid የሆነ statement ከፃፍን execute ያረግና waits for another statement.
In Script mode, Interpreterኡ python statements የያዘ file ውስጥ ያሉትን contents አንድ በአንድ ያነባቸዋል።
ይህ file ደግሞ python program ወይም python noscript ይባላል። Interpreterኡ each statement ባነበበ ቁጥር execute ያረጋቸዋል።
Interactive Mode
Python interpreter የሆነ operating system ውስጥ ከጫንን በኋላ ወደ command-line በመሄድ Interpreterኡን በInteractive mode ማረግ እንችላለን። with the following command:
python
When the Python interpreter starts in interactive mode, እንደዚህ አይነት ነገር displayed ይሆናል።
Python 3.11.8 (main, Feb 11 2024, 13:05:24) [Clang 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d1 on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
ይህኛው👇 ምልክት የሚያሳየው Interpreterኡ የሆነ ነገር እንድትፅፉ እየጠበቀ መሆኑና የምትፅፉትን python statement execute ለማረግ ready እንደሆነ ነው።👇
>>>
...ይቀጥላል
@python_pioneers
@python_pioneers
👍3👏2
INTERACTIVE MODE
One of the simplest statements that you can write in Python is a print statement, print የፈለግነውን መልዕክት screen ላይ display ለማድረግ የሚጠቅም statement ነው።
ለምሳሌ፡ ከዚህ በታች ያለው statement Hello, Ethiopia! የሚል መልዕክት displayed እንዲሆን ያደርጋል።
Notice that ከprint statement በኋላ መልዕክታችንን የፃፍነው በquote marks ወይም በትምህርተ ጥቅስ መካከል ነው፣ qoute marks አስፈላጊ ቢሆኑም they will not be displayed, these qoutes ጅ የፆፍነውን መልዕክት መጀመሪያና መጨረሻ ያሳያሉ።
መልዕክቱ displayed ከተደረገ በኋላ >>> prompt ተመልሶ ይመጣል፣ ሌላ statement እንድትፅፉ እየጠበቀ ነው ማለት ነው።
ስለ Python ለመማር Interactive mode preferable ነው። That means we don't need to create a file, write a code in it, save it....bla bla.... We just write statements and get quick executions.
ከPython interpreter ለመውጣት ደግሞ እነዚህን አማራጮች መጠቀም እንችላለን exit() [ENTER], CTRL + Z for windows, CTRL + D for Mac, Linux or UNIX computers.
በቀጣይ python programs በnoscript mode እንዴት እንደንደምንፅፍ እናያለን።
Stay Tuned!
@python_pioneers
@python_pioneers
One of the simplest statements that you can write in Python is a print statement, print የፈለግነውን መልዕክት screen ላይ display ለማድረግ የሚጠቅም statement ነው።
ለምሳሌ፡ ከዚህ በታች ያለው statement Hello, Ethiopia! የሚል መልዕክት displayed እንዲሆን ያደርጋል።
>>>print('Hello, Ethiopia!')Notice that ከprint statement በኋላ መልዕክታችንን የፃፍነው በquote marks ወይም በትምህርተ ጥቅስ መካከል ነው፣ qoute marks አስፈላጊ ቢሆኑም they will not be displayed, these qoutes ጅ የፆፍነውን መልዕክት መጀመሪያና መጨረሻ ያሳያሉ።
>>>print('Hello, Ethiopia!'). [ENTER]
Hello, Ethiopia!
>>>መልዕክቱ displayed ከተደረገ በኋላ >>> prompt ተመልሶ ይመጣል፣ ሌላ statement እንድትፅፉ እየጠበቀ ነው ማለት ነው።
ስለ Python ለመማር Interactive mode preferable ነው። That means we don't need to create a file, write a code in it, save it....bla bla.... We just write statements and get quick executions.
ከPython interpreter ለመውጣት ደግሞ እነዚህን አማራጮች መጠቀም እንችላለን exit() [ENTER], CTRL + Z for windows, CTRL + D for Mac, Linux or UNIX computers.
በቀጣይ python programs በnoscript mode እንዴት እንደንደምንፅፍ እናያለን።
Stay Tuned!
@python_pioneers
@python_pioneers
👍3
SCRIPT MODE
Interactive mode የፃፍነውን code test ለማድረግ ጠቃሚ ቢሆንም በዚህ mode ምንፅፋቸው codes saved አይሆኑም። They are simply executed and their results displayed on the screen.
Python statements እንደ program save ለማድረግ፣ you save those statements in a file፣ ከዛም python Interpreter በnoscript mode በመጠቀም የፃፍነውን code execute ማድረግ እንችላለን።
For example, suppose you want to write a Python program that displays the following three lines of text:
My name is Abebe.
I am 25 years old.
I am a university student.
Programኡን ማንኛውንም አይነት text editor መፃፍ እንችላለን፣ ፅፈን ስንጨርስ ደግሞ programኡን የፃፍንበትን file with the .py extension save እናረገዋለን።
ለምሳሌ fileኡን በዚህ ስም save አርገናል እንበል: ethio.py
የፃፍነውን program run ለማድረግ ደግሞ ወደ operating systemኡ command-line በመሄድ fileኡ ያለበት folder ውስጥ እንደሚከተለው እንፅፋለን፡
This starts the Python interpreter in noscript mode and causes it to execute the statements in the file ethio.py. When the program finishes executing, the Python interpreter exits.
And here is the output:
...እንቀጥላለን⚡
@python_pioneers
Interactive mode የፃፍነውን code test ለማድረግ ጠቃሚ ቢሆንም በዚህ mode ምንፅፋቸው codes saved አይሆኑም። They are simply executed and their results displayed on the screen.
Python statements እንደ program save ለማድረግ፣ you save those statements in a file፣ ከዛም python Interpreter በnoscript mode በመጠቀም የፃፍነውን code execute ማድረግ እንችላለን።
For example, suppose you want to write a Python program that displays the following three lines of text:
My name is Abebe.
I am 25 years old.
I am a university student.
Programኡን ማንኛውንም አይነት text editor መፃፍ እንችላለን፣ ፅፈን ስንጨርስ ደግሞ programኡን የፃፍንበትን file with the .py extension save እናረገዋለን።
print('My name is Abebe.')
print('I am 25 years old.')
print('I am a university student.')ለምሳሌ fileኡን በዚህ ስም save አርገናል እንበል: ethio.py
የፃፍነውን program run ለማድረግ ደግሞ ወደ operating systemኡ command-line በመሄድ fileኡ ያለበት folder ውስጥ እንደሚከተለው እንፅፋለን፡
python ethio.py
This starts the Python interpreter in noscript mode and causes it to execute the statements in the file ethio.py. When the program finishes executing, the Python interpreter exits.
And here is the output:
My name is Abebe.
I am 25 years old.
I am a university student.
...እንቀጥላለን⚡
@python_pioneers
👍1