SEMINAR PRESENATION
ON
INTRODUCTION TO
PYTHON
Submitted by-Aman Kumar
Roll no: 05
Sec-A 3rd SEM
ABOUT THE COURSE
No of modules-6
Starting date- 30-July-2018
No. of weeks-6
Provided by- Edx
IMPORTANCE OF PYTHON
Professionally, Python is great for backend web
development, data analysis, artificial intelligence, and
scientific computing. Many developers have also used
Python to build productivity tools, games, and desktop
apps
Easy to Understand
Compatible with Major Platforms and Systems
What is Python?
Python is a popular programming language. It was
created in 1991 by Guido van Rossum.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and
modify files.
Python can be used to handle big data and perform complex
mathematics.
Python can be used for rapid prototyping, or for production-
ready software development.
Creating Variables
Unlike other programming languages, Python has no command for declaring a
variable.
A variable is created the moment you first assign a value to it.
Example
x=5
y = "John"
print(x)
print(y)
Variables do not need to be declared with any particular type and can even
change type after they have been set.
x = 4 # x is of type int
x = “Hello" # x is now of type str
print(x)
Python Numbers
There are three numeric types in Python:
int
float
complex
Variables of numeric types are created when you assign a value to them:
Example
x = 1 # int
y = 2.8 # float
z = 1j # complex
String Literals
String literals in python are surrounded by either single quotation marks, or
double quotation marks.
'hello' is the same as "hello".
Strings can be output to screen using the print function. For example:
print("hello").
Like many other popular programming languages, strings in Python are arrays
of bytes representing unicode characters. However, Python does not have a
character data type, a single character is simply a string with a length of 1.
Square brackets can be used to access elements of the string.
Example
Get the character at position 1 (remember that the first character has the
position 0):
a = "Hello, World!"
print(a[1])
THANK YOU