INTRODUCTION
TO PYTHON
By:Mohamed Essam
CONTENT OF THIS COURSE
 Here’s what you’ll find in this Course :
 Introduction to python general-purpose programming language.
 What Python Used for.
 Companies uses Python.
 Setting Up the Environment.
 Start Python Programming
What Python is?
Python is a popular general-purpose programming language.
It was created by Guido van Rossum in 1980, and released in 1991.
It is used for:
 Web development (server-side).
 Artificial Intelligence .
 Software Development.
Top Companies using python
What make it so powerful for that is because it
has a many framework!

A framework is a set structure in which tasks are performed or
completed. Typically, a framework refers to an often layered structure
that indicates what kind of programs can or should be built and how they
would connect to each other.
Setting up the Enviroment
An integrated development environment (IDE)
Why it’s better to use an IDE than Running
code in Note pad with python Compiler
Functions
WHAT DOES A COMPUTER DO?
 performs calculations a billion calculations per second! two
operations in same time light travels 1 foot.
 Remembers results
 100s of gigabytes of storage!
 typical machine could hold 1.5M books of standard size
-Linus Torvalds
“Talk is cheap.
Show me the code.”
01:Variables
Variables
You can think of variable as a little box or a container to store data in the
memory of the computer and later retrieve the data using the variable “name”
Programmers get to choose the names of the variables
You can change the contents of a variable in a later statement
01:Variables
02:Arithmetic Operations
Operation
Operator
Addition
+
Subtraction
-
Multiplication
*
Division
/
Power
**
Remainder
%
03:User Input
Python has an input function which lets you ask a user for some text input.
04:Comments in Python
Comments in Python begin with a hash mark ( # ) and whitespace
character and continue to the end of the line. Because comments do not
execute, when you run a program you will not see any indication of
the comment there. Comments are in the source code for humans to read,
not for computers to execute.
05:Conditions
Python uses boolean logic to evaluate conditions. The boolean values True
and False are returned when an expression is compared or evaluated.
Introduction to AI with ML
Introduction to AI with ML
06:Loop
Python has two primitive loop commands:
 while loops
 for loops
07:Data Structures
Every child knows that one can – at least beyond a certain number
– find things much easier if one keeps order. We humans
understand by keeping things in order that we separate the things
that we possess into categories and assign fixed locations to these
categories that we can remember.
We may simply throw socks into a drawer, but for other things like
DVDs it is best to sort them beyond a certain number so that we
can quickly find every DVD.
07:Data Structures-String
M O D E R N
07:Data Structures
There are four collection data types in the Python
programming language:
List is a collection which is ordered and changeable. Allows
duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows
duplicate members.
Set is a collection which is unordered and unindexed. No
duplicate members.
Dictionary is a collection which is ordered* and changeable. No
duplicate members.
Introduction to AI with ML
07:Data Structures-List
 Lists are used to store multiple items in a single variable.
 Lists are one of 4 built-in data types in Python used to store
collections of data, the other 3 are Tuple, Set, and Dictionary,
all with different qualities and usage.
 The list is changeable, meaning that we can change, add, and
remove items in a list after it has been created.
 Lists are created using square brackets:
08:Functions
08:Functions
A function is a block of code which only runs when it is called.
You can pass data, known as parameters, into a function.
A function can return data as a result.

Intro to python

  • 1.
  • 2.
    CONTENT OF THISCOURSE  Here’s what you’ll find in this Course :  Introduction to python general-purpose programming language.  What Python Used for.  Companies uses Python.  Setting Up the Environment.  Start Python Programming
  • 3.
    What Python is? Pythonis a popular general-purpose programming language. It was created by Guido van Rossum in 1980, and released in 1991. It is used for:  Web development (server-side).  Artificial Intelligence .  Software Development.
  • 8.
  • 9.
    What make itso powerful for that is because it has a many framework!  A framework is a set structure in which tasks are performed or completed. Typically, a framework refers to an often layered structure that indicates what kind of programs can or should be built and how they would connect to each other.
  • 10.
    Setting up theEnviroment
  • 11.
    An integrated developmentenvironment (IDE)
  • 12.
    Why it’s betterto use an IDE than Running code in Note pad with python Compiler
  • 13.
  • 14.
    WHAT DOES ACOMPUTER DO?  performs calculations a billion calculations per second! two operations in same time light travels 1 foot.  Remembers results  100s of gigabytes of storage!  typical machine could hold 1.5M books of standard size
  • 15.
    -Linus Torvalds “Talk ischeap. Show me the code.”
  • 16.
  • 17.
    Variables You can thinkof variable as a little box or a container to store data in the memory of the computer and later retrieve the data using the variable “name” Programmers get to choose the names of the variables You can change the contents of a variable in a later statement
  • 18.
  • 19.
  • 20.
    03:User Input Python hasan input function which lets you ask a user for some text input.
  • 21.
    04:Comments in Python Commentsin Python begin with a hash mark ( # ) and whitespace character and continue to the end of the line. Because comments do not execute, when you run a program you will not see any indication of the comment there. Comments are in the source code for humans to read, not for computers to execute.
  • 22.
    05:Conditions Python uses booleanlogic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated.
  • 23.
  • 24.
  • 25.
    06:Loop Python has twoprimitive loop commands:  while loops  for loops
  • 26.
    07:Data Structures Every childknows that one can – at least beyond a certain number – find things much easier if one keeps order. We humans understand by keeping things in order that we separate the things that we possess into categories and assign fixed locations to these categories that we can remember. We may simply throw socks into a drawer, but for other things like DVDs it is best to sort them beyond a certain number so that we can quickly find every DVD.
  • 28.
  • 29.
    07:Data Structures There arefour collection data types in the Python programming language: List is a collection which is ordered and changeable. Allows duplicate members. Tuple is a collection which is ordered and unchangeable. Allows duplicate members. Set is a collection which is unordered and unindexed. No duplicate members. Dictionary is a collection which is ordered* and changeable. No duplicate members.
  • 30.
    Introduction to AIwith ML 07:Data Structures-List  Lists are used to store multiple items in a single variable.  Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage.  The list is changeable, meaning that we can change, add, and remove items in a list after it has been created.  Lists are created using square brackets:
  • 31.
  • 32.
    08:Functions A function isa block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.