Introduction and setting things up - Python 3.x Tutorial
Python is one of the most popular programming languages in the world. And the best thing about it is, it's extremely easy to learn! So for the newbies in programming, it's the most appealing language to learn. This tutorial is designed for absolute newcomers in the programming world.
Python is easy to learn but it is a high-level programming language even with object-oriented supports. So it's nothing different than other languages. Once you learn Python properly, other languages are as easy as hell.
Installing Python in Computer
If you use MacOS or Linux, you can skip this part. Python is pre-installed in these operating systems. But if you use Windows you have to download python and install it.
Once you install Python, it'll also install PIP on your PC. What's PIP? It's like a robot. When you are missing something, you can download that using PIP. We'll talk about pip later.
If you are learning through an Android phone, you can still use Python. Just download this app name Pydroid and you are good to go. (Download: Android)
Unfortunately, in IOS there is no good app for free. If you are ok to pay $9.99 you can download Pythonista 3. We recommend not to pay money for these.
Anyway in this site you can do programming in on-page interpreters. So don't bother downloading things now.
First Step in Programming
We programmers have a tradition of starting a new language. Let's follow that!
The tradition is, our first program should be a set of codes that will print "Hello, World!" on the screen.
Press the play button (that triangle right after the colorful icon) to run the code. You can see that on the right there is something written. Yes, you just wrote a line of code that prints the writing "Hello, World!". (if you use a phone, its recommended to rotate the phone to landscape mode for the best view)
So, what on earth happened here? Ok. first, there is the print() statement which orders the computer to print something. And that something is your first words, "Hello, World!". So have you ever wondered, why we used the quotes("")? That transforms the Hello, World text to a string! The string is a data type in python, which actually lets us enter text to a program. Anyway, congratulations! You mad your first program in python!
Ok. this is not actually a tutorial post, it's more like an introduction post. So let's not talk much about these. Wanna have some fun? Delete all the codes and write import this in the interpreter. Then click run. TADA!
This beautiful(?) poem is the main basics of python programmers. We'll learn to apply them all along with this tutorial.
This beautiful(?) poem is the main basics of python programmers. We'll learn to apply them all along with this tutorial.
Need better places to learn?
We know that we are not the best. But there are the best things, the best resources on the internet to learn python. Try them out, you'll love them.
No comments: