KEMBAR78
introduction to Python | Part 1 | PPTX
Introduction to
Python
Sarah Alsudairi
CS student at IAU
@sudairi_
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.
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
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
Introduction to Python
Software Programs written in Python
YouTube Instagram Reddit Spotify
Quora Dropbox Netflix
Introduction to Python
Python IDE
PyCharm
Sublime Text
Visual Studio
Atom
Spyder
Anaconda
Jupyter
Visual Studio Code
Basics of Programming
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.
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:
Print() function
The print() function prints the given
object to the standard output device
(screen) or to the text stream file.
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.
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
Data types
Comparison operators
Control flow
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
Conditional statements
If elif else
Logical operator
AND, OR, NOT
Logical operator
AND
Logical operator
OR
Logical operator
NOT
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.
Functions
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):
Thank You!
Sarah Alsudairi
CS student at IAU
@sudairi_

introduction to Python | Part 1

  • 1.
  • 2.
    Introduction to Python Pythonis 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 Pythonfeatures ●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 ApplicationAreas of Python Programming Language ●Web Development ●Game Development ●Machine Learning and Artificial Intelligence ●Data Science and Data Visualization ●Desktop GUI ●Audio and Video Applications
  • 5.
    Introduction to Python SoftwarePrograms written in Python YouTube Instagram Reddit Spotify Quora Dropbox Netflix
  • 6.
    Introduction to Python PythonIDE PyCharm Sublime Text Visual Studio Atom Spyder Anaconda Jupyter Visual Studio Code
  • 7.
  • 8.
    Variables Variables are usedto 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 cannot 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 inputfunction is a function that takes an input (number, character or string) and stores that input value to a particular identifier.
  • 12.
    Data types A datatype, 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
  • 13.
  • 14.
  • 15.
  • 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
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
    Loops for, while Loops aretraditionally 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.
  • 23.
  • 24.
    Functions Functions allow usto 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):
  • 25.
    Thank You! Sarah Alsudairi CSstudent at IAU @sudairi_