2. Introduction to Python
Python is a programming language that was
launched and developed in 1991 by the Dutch
programmer Guido Van Rossum, and it differs from
other programming languages in that it is
characterized by the ease of reading and writing
code in addition to not having to write long lines of
code much in order to give programming
commands.
3. Introduction to Python
Python features
●Easy to code
●Free and Open Source
●Object-Oriented Language
●Dynamically Typed Language
●High-Level Language
●Extensible feature
●Python is Integrated language
4. Introduction to Python
Application Areas of Python Programming Language
●Web Development
●Game Development
●Machine Learning and Artificial
Intelligence
●Data Science and Data
Visualization
●Desktop GUI
●Audio and Video Applications
8. Variables
Variables are used to store information to be
referenced and manipulated in a computer program.
They also provide a way of labeling data with a
descriptive name and their sole purpose is to label and
store data in memory. This data can then be used
throughout your program.
9. Variables
● Names can not start with a number.
● There can be no spaces in the name,
use _ instead.
● Can not use any of these symbols
; “ ‘ , <> / ? | () ! @ # $ % ^ & * ~ - +
Rules for variables name:
10. Print() function
The print() function prints the given
object to the standard output device
(screen) or to the text stream file.
11. Input() function
An input function is a function that
takes an input (number, character or
string) and stores that input value to
a particular identifier.
12. Data types
A data type, in programming, is a classification that specifies which
type of value a variable has and what type of mathematical, relational
or logical operations can be applied to it without causing an error.
Types of Data types:
• Primitive data types
• Reference data types
16. Conditional statements
Conditional statements, conditional expressions
and conditional constructs are features of a
programming language, which perform different
computations or actions depending on whether a
programmer-specified Boolean condition
evaluates to true or false.
If elif else
22. Loops
for, while
Loops are traditionally used when you have a block of code which
you want to repeat a fixed number of times. The Python for
statement iterates over the members of a sequence in order,
executing the block each time.
24. Functions
Functions allow us to create blocks of code that can be easily
executed many times, without needing to constantly rewrite the
entire block of code.
Function keyword in Python:
def name_of_function(parameters):