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
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
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
Objectives:
Python Code:
[sourcecode lang=”python”]
print("Enter radius of circle")
rad = input()
r=float(rad)
area = 3.14 * r * r
circumference = 2 * 3.14 * r
print(area)
print(round(circumference, 2))
[/sourcecode]
Steps to Run the above code:
Download code:
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
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/
Objectives:
Code:
[sourcecode language=”python”]
x=5
y=3
z = x + y
print(x)
print(y)
print(z)
[/sourcecode]
Please refer above code to add numbers in Python and print their values.
Steps to Run the above code:
Download code:
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
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/
Objectives:
In Python there are two (2) types of Comments in Python:
Comments are statements which are not readable to an interpreter and will not be executed. Basically, comments are used to specify details such as why we have written the block of code, etc.
Single Line Comments are defined using hash sign (#) whereas multiple line comments are defined using three times double quote for opening and closing as mentioned below.
Code:
[sourcecode language=”python”]
# This is Single Line Comment.
"""
This
is
Multiline
Comment.
"""
print ("Now I understand comments in python.")
[/sourcecode]
Please refer above code to write comments in Python.
Steps to Run the above code:
Download code:
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
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/
Objectives:
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:
Steps to Run the above code:
Download code:
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
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/
Objectives:
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:
Download code:
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
https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/