Introduction To Python
What is Python?
If you have some programmer friend or yourself is into to the programming field you have probably heard the language Python.
Python is a High-Level-Programming Language used for many cases, in this post, we will be seeing how to work with Python.
Installation and IDE
We must install python first to work with it. Installation is simple. You can get clear info on how to get python here. Once you are done, Make sure you have atleast Python Version of 3.0 or greater. Because this guide follows it.
Once you are done installing Python, Now we need an IDE to work with it, an IDE is nothing but an Interageted Development Environment which makes your work smoother. To get a Clear understanding, Think of this
You need to mix somethings in a bowl, you can either use your hands itself or use a mixer, both is going to do the same job but mixer does it well and your effort will be less. Just like this, An IDE is something like a mixer which helps a lot when you are working with some language even though it's not compulsory, you can also use a normal text editor to work. The most famous IDE for Python is Py-Charm which is very easy to use, you can get it here.
If you are working with Android all you have to do is to install An application called Py-Droid which provides both Python and Python IDE for Android. You can get Py-Droid for Android here.
So let's get started
First Program
So are you ready to get your first Python Program? Okay let's go. Open the IDE, Make a New file, As by Tradition of Programming, The first program of most programming language is hello world program. We will be making one for us too. So The code goes like this
print("Hello World!")
This will our first program, That's all! Save the file as hello_word.py Remember .py extension says that the file is a Python Program to the System. So Now run it. You should see something like this in console
So Yay, You just Did Your first project! You placed your first step into programming Python.
Byte of Blog
So here is Byte of the Blog . In Python you don't need to use semicolons [ ; ] like many other programming language does. But Instead you will interface a lot of usage of colons [ : ]
So yeah, We are at end of the blog, Today you wrote your first Python Code. Congrats for it. If you saw any errors and can't understand how to solve it, feel free to ask me in comments. If you know someone who is willing to learn Python or Programming share this post with them.
Thank You for visiting this blog. See you all in next post, Till Then Take care and bye
Stay Tuned ♡!
Comments
Post a Comment