Learn Python in Tamil | பைதான் மொழியைக் கற்றுக்கொள்ளுங்கள் – Writing first program in Python and executing them using Python Interpreter
Writing your first Python code
Where to write?
You can use any Notepad or Text editor for writing your Python program. But there are May IDEs available to help us with auto fill the code snippet or help us with formatting the code and check for any syntax errors.
But today we are going to write our first code, So lets use simple notepad or text editor.
Your first Python program
# This is my first Python code
# To print Hello world in the console
print("Hello World")
Save the above file in any folder with the name helloworld.py
.py is the file extension used to identify the file is Python script
Well you have now officially a Python developer, because you have written your first python code.
How to execute the Python program?
In order to execute the python program, we need Python Interpreter which will do the magic.
What is that magic?
Its the Interpretation of simple English into 0’s and 1’s, Yes the Python Interpreter is going to read your code and convert into 0’s and 1’s so that machine can understand the instructions.
To execute the Python code,
You need to open Terminal or Command prompt in your Machine.
Type “python3 filename.py” (In our case, “python3 helloworld.py”
Hit Enter, you should see the output in the console.
Got into issue while running the program?
Goto this link https://youtu.be/Mj6HSMLvikc and comment the error message. We will have a loot at what went wrong and why the error appeared.
In today’s topic we will be seeing the Python intro in Tamil – Part 2 | பைதான் கற்றுக்கொள்ளுங்கள், before proceeding if you have missed watching our previous topic “Python intro in Tamil – part 1” see below link.
In Python intro in Tamil – Part 2, We are going to see how to Download and install Python. along with that we will see the operating system supported and system minimum requirements.
Learn Python in Tamil | பைதான் மொழியைக் கற்றுக்கொள்ளுங்கள் – Python programming language introduction | பைத்தான் அறிமுகம்
கணினி, மொபைல், இயந்திரங்கள் மின்னணு சாதனங்கள், அது எந்த மனிதனின் மொழியையும் புரிந்து கொள்ளவில்லை. அது என்ன புரிந்துகொள்கிறது? இது இயந்திர மொழியைப் புரிந்து கொள்ள முடியும் (இது 0 மற்றும் 1 இன் தவிர வேறு ஒன்றும் இல்லை – binary code)
High level & Low level மொழிகள்
High level மொழிகள்- எளிய ஆங்கில வாக்கியம் இயந்திரத்திற்கு வழிமுறைகளை வழங்க பயன்படுத்தப்படுகிறது. Low level மொழிகளின் எடுத்துக்காட்டு #Java, #Python மற்றும் பல Low level 0 மற்றும் 1 கள் செயல் அல்லது வழிமுறைகளைச் செய்ய இயந்திரத்தில் ஊட்டப்படுகின்றன. (Assembly மொழி மற்றும் Machine மொழிகள்)
High level to low level or machine language “Interpreter” பயன்படுத்தப்படுகிறது. எளிய ஆங்கிலத்தை 0 மற்றும் 1 க்கு மாற்ற டெவலப்பர்கள் அல்லது புரோகிராமர்களால் இந்த interpreter எழுதினார்.
பைதான் “குடியோ வான் ரோஸம்” என்பவரால் உருவாக்கப்பட்டது மற்றும் 1991 ஆம் ஆண்டில் வெளியிடப்பட்டது. வலை வடிவமைப்பு, மென்பொருள் மேம்பாடு, கணினி ஸ்கிரிப்டிங், கணிதம் மற்றும் பல இடங்களில் பைதான் பயன்படுத்தப்படுகிறது.
Computer, mobile, machines are electronic devices, it does not understand any human’s language.
Then what does computer’s understands?
Computer’s can understand only machine language, which is nothing but 0’s and 1’s – Binary code
High level or Low level programming languages
High level – It’s simple English sentence which are used for providing instructions to the machines.
Example: #Java, #Python are some of High level programming languages.
Low level – Direct 0’s and 1’s are feed into the machine to perform the action or instructions. (Assembly language and machine languages)
Interpreter
It is used for converting the High level to Low level or machine, Interpreter’s were also written by developers or programmers, to convert the simple English sentence to 0’s and 1’s.
Gudio van Rossum has created Python and released in the year 1991. It is also used in Web designing, Software development, System scripting, Mathematics and many more places.