Python Basics

Let´s getting started with Python

Python Install

Numerous PCs and also Macs will have python already installed.
To inspect if you have actually python set up on a Windows COMPUTER, search in the begin bar for Python or run the following on the Command Line (cmd.exe):

C:\Users\YourPcsName>python-- version

To examine if you have python set up on a Linux or Mac, open the Terminal and put in:

python-- version

If you locate that you do not have actually python set up on your computer system, then you can download it free of cost from the following website:


Python Quickstart

Python is an interpreted programming language, this implies that as a designer you write Python (. py) files in a full-screen editor and then put those data into the python interpreter to be implemented
The method to run a python data resembles this on the command line:


Where “” is the name of your python data,
allow’s to compose our first Python file, called, which can be performed in any full-screen editor.


inside your editor type:

print ("Hi, I am using Python for the first time!")

Easy as that. Conserve your data. Open your command line, navigate to the directory where you saved your documents, and run: .

C:\Users\Your Name>python 
C:\Users\Your Name>py

The result should look like:

>>> HI, I am using Python for the first time!"

Congratulations, you have actually composed and performed your first Python program.

The Python Command Line.
To test a short quantity of code in python often it is quicker as well as simpler not to create the code in a file. This is implemented since Python can be run as a command line itself.
Type the complying with on the Windows, Mac or Linux command line: .

C:\Users\Your Name>python

Or, if the “python” command did not function, you can attempt “py”: .


From there you can write any kind of python, including our hipython:

C: \ Users \ Your Name > python
Python 3.6.4 (v3.6.4: d48eceb, Dec 19 2017, 06:04:45) [MSC v. 1900 32 little bit (Intel)] on win32.
Kind "assistance", "copyright", "credit ratings" or "permit" to find out more.

>>> print ("Hi, I am using Python for the first time!")

Which will compose “Hey, I am using Python for the very first time!” In the command line.

Whenever you are done in the python command line, you can simply cal the following function to stop the python command line interface: .

Python Basics

Python Intro- Dip your toe

Python Introduction

What is Python?

Python is a prominent programming language. It was produced by Guido van Rossum, and also launched in 1991.

It is made use of for:

  • web growth (server-side),
  • software program development,
  • maths,
  • system scripting

What can Python do?

Python was created for readability, as well as has some similarities to the English language with influence from mathematics.

Python utilizes brand-new lines to complete a command, instead of other programming languages which commonly utilize semicolons or parentheses.

Python relies on impression, utilizing whitespace, to define extent; such as the scope of loopholes, classes and also features. Various other programs languages frequently use curly-brackets for this objective.

Why Python?

  • Python deals with different systems (Windows, Mac, Linux, Raspberry Pi, etc).
  • Python has a basic syntax comparable to the English language.
  • Python has phrase structure that allows programmers to write programs with less lines than a few other programs languages.
  • Python operates on an interpreter system, meaning that the code can be executed as soon as it is composed. This indicates that prototyping can be very quick.
  • Python can be dealt with in a procedural way, a practical means or an object-oriented way.
  • Python can be made use of on a web server to produce web applications.
  • Python can be used alongside a software program to develop process.
  • Python can attach to database systems. It can also review as well as customize data.
  • Python can be used to deal with huge information and perform intricate paths.
  • Python can be made use of for fast prototyping, or for production-ready software program advancement.

Python Syntax contrasted to other programs languages.


print ("Hi, I am using Python for the first time!")


"Hi, I am using Python for the first time!"

As you can see, the print() function allows us to simply print (as it’s saying) text in our program. Don´t worry too much right now, we will cover everything in the future python tutorials.

Great to know.

The most recent significant variation of Python is Python 3, which we shall be utilizing in this tutorial.
Nonetheless, Python 2, although not being upgraded with anything other than protection updates, is still fairly preferred.
In this tutorial Python will certainly be written in a text editor. It is feasible to write Python in an Integrated Advancement Environment, such as Thonny, Pycharm, Netbeans or Eclipse which are specifically useful when handling bigger collections of Python files.

Learn Python