Category Archive Step By Step Python Training Tutorial

BySlide Scope

Python Tutorial Part 3 – Basic Syntax of Python

In the previous part of this tutorial we explained the process of installing Python on your computer. In this tutorial we will explain about the Basic Syntax of Python language.

Once Python is installed in your computer you can use one of the following tools to code and execute python.

python idle and command prompt

You can search for Python in your computer programs and you will find these two options.

IDLE is an integrated development environment for Python.

Other One is the Command Prompt Windows for Python Coding.

IDLE is a preferred option for Python Coding because it has a Coding Editor with built in auto suggest tool. It has nice color coding to differentiate between various elements of a code.

Basic Syntax of Python – How to Print a Statement in Python

Python Uses a built-in function named print to print any statement.

If we want to print “Welcome to Python Tutorial” we can use the following command.

print (“Welcome to Python Tutorial by Slidescope”)

python printing first statement

You can see the Screen Shot of IDLE Window.

The line with three Greater Than Signs >>> is the input line

The next line in Blue is the Output.

You can see the Statement to be printed is written in Round Brackets and Double Quotes.

You can also use single quotes.

Value written inside Quotes Represent a String Data type.

To print integer or float type values we don’t have to use single or double quotes.

Syntax to Print an Integer Value:

>>>print (55)

Output:  55

After writing the Input we have to press enter to execute the command and present output.

Please try using these commands in your practice and let us know if you have any doubts in the comment section below.

If you are not familiar about Data Types in Programming Languages then Refer to Our Next Tutorial which explains the data types topic.

Official Website of Python Is www.Python.org

BySlide Scope

Python Tutorial Part 2 – How to Install Python

This article will guide you through the process of Installing Python in your computer.

Python is supported by Windows, Linux/UNIX, Mac OS X, and Other Operating Systems.

Python Tutorial Part 2 - How to Install Python

You can click on the respective links to Go to the Download Page and select the Python version of your choice.

Currently the version of Python is 3.6.5.

Once you are finished with downloading the executable file you can simply install Python by running it.

Python will create a Folder in your default or custom drive.

Python will also install IDLE, it is an integrated development environment for Python.

You can also run python in Command Prompt from the Python 3.6 File created in your All Programs >> Python 3.6 Folder.

python command prompt

Two other files will also be installed in the package which are the documentation files.

Here are the names of documentation files created in windows installation of Python

  • Python 3.6 Manuals (32-bit)
  • Python 3.6 Module Docs (32-bit)

Python-shortcuts

 

BySlide Scope

Python Tutorial Part 1 – Introduction to Python

What is Python?

Python is a very powerful and easy to understand High Level Programming Language.

It is general purpose programming language which requires only interpreters and no compilers.

It is an object oriented language. Everything in python is an object.

Creator of Python was Guido van Rossum during 1985- 1990.

Python Supports following Programming Paradigms:

  • Object-oriented
  • Imperative
  • Functional
  • Procedural

It has a large and comprehensive Standard Library.

Python is both Strongly Types and Dynamically Typed.

It Focuses on Readability and Productivity.

Python runs on all major operating systems including Windows, Mac Os or Linux. It is Cross platform.

Python is Opensource.

Python uses Whitespaces for Indentation.

If you are familiar with programming languages such as C or JAVA, you will find out that some expressions in Python are similar to them while others are not.

Python is used by famous organizations like:

  • Google
  • NASA
  • PBS etc.

Syntax of Python

Syntax of python is very easy to understand and write,  to print “hello world”. You can write

print (“Hello World”)