# Python Training India

## Installing Python and VS Code

via https://youtu.be/DrivZ6H_JDw

In this lesson, we will learn how to set up your Python development environment.

Aatul Palandurkar

International Trainer and Author

## Python Introduction by Aatul Palandurkar

via https://youtu.be/ihA-rJkOiCo

This video offers an introduction to Python Programming Language and will help you understand the basics of python with live coding.

Contact for Python Online Training: aatul@palandurkar.com

Aatul Palandurkar

International Trainer and Author

## Area and Circumference of Circle in Python

Objectives:

• How to find the area of a circle in Python?
• How to find the circumference of a circle in Python?
• How to find the area and circumference of a circle in Python?

Python Code:

[sourcecode lang=”python”]

area = 3.14 * r * r
circumference = 2 * 3.14 * r
print(area)
print(round(circumference, 2))

[/sourcecode]

Steps to Run the above code:

• Navigate to the folder/directory where you have saved your python code or file.
• Here I have considered that python file is saved on “c:\>” and the File name is “Circle.py
• Just type the following command now to execute the Python program: c:\> python Circle.py

• Navigate to GitHub repository and download the code from here: Circle.py

We conduct Python Training and Workshop for Corporates and College Students, if interested, please write to us on kloudsancyber@gmail.com

Aatul Palandurkar
Life Coach, International Trainer, and Author

## Variables in Python

Objectives:

• How to write variables in Python?
• How to create variables in Python?
• How to add variables in Python?
• How to define variables in Python?
• What are the types of variables in Python?

Code:

[sourcecode language=”python”]
x=5 # int
y=3.5 # float
z="ABC" # String
print(x)
print(y)
print(z)
[/sourcecode]

Please refer above code to define variables in Python and print their values.

The above code clearly states that there are three (3) types of Variables in Python:

• int – Integer Values
• float – Float Values or Decimal Values
• String – String literals

Steps to Run the above code:

• Navigate to the folder/directory where you have saved your python code or file.
• Here I have considered that python file is saved on “c:\>” and the File name is “Variables.py
• Just type the following command now to execute the Python program: c:\> python Variables.py

• Navigate to GitHub repository and download the code from here: Variables.py

We conduct Python Training and Workshop for Corporates and College Students, if interested, please write to us on kloudsancyber@gmail.com

Aatul Palandurkar
Life Coach, International Trainer, and Author

## Hello World in Python

Objectives:

• How to write Hello World in Python?
• How to print Hello World in Python?
• How to print a new line in Python?
• How to print a blank line in Python?
• How to run the Python Code?
• How to execute the Python Code?

Code:

[sourcecode language=”python”]
print("Hello, World!")
print() # prints a new or blank line, works as "\n"
print("Hi")
[/sourcecode]

Please refer above code to print Hello World in Python

Steps to Run the above code:

• Navigate to the folder/directory where you have saved your python code or file.
• Here I have considered that python file is saved on “c:\>” and the File name is “HelloWorld.py
• Just type the following command now to execute the Python program: c:\> python HelloWorld.py

• Navigate to GitHub repository and download the code from here: 001_Hello.py

We conduct Python Training and Workshop for Corporates and College Students, if interested, please write to us on kloudsancyber@gmail.com

Aatul Palandurkar
Life Coach, International Trainer, and Author