Why Python?

Slim Chebbi

slimchebbiisi@gmail.com

Python ?

Python ?

  • A Programing language:

Python ?

  • Dynamic  & Scripting programming language 
  • Open source
  • Cross Platform
  • Object Oriented

Python ?

Python ?

  • General purpose 

 

 

 

  1. Web framwork(Django,Flask,Pyramid,web2py...)

  2. Desktop GUI (PyQT,wxWidgets ,GTK...)

  3. Mobile (Kivy)

  4. Scientific and Numeric computing

  5. ...

Python ?

  • Interactve Shell
  • Easy to learn
  • Focus on readability and productivity

Python ?

C++

Java

Python

 

Python ?

Python indentation

Python ?

PHP

Python ?

Python Libraries cover evrey thing: 

 

 

Python ?

Python ?

Python ?

Python Implimentation:

  • CPython
  • JPython
  • IronPython

Why  Python ?

Why  Python ?

Why  Python ?

  • 370,450 questions asked

  • 133,646 repository

  • Python Software Foundation

Why  Python ?

PYPL 

Why  Python ?

TIOBE

Why  Python ?

Why  Python ?

companies use Python:

Why  Python ?

Websites : 

 

  

Why  Python ?

Applications :

Python in Tunisia?

Python in Tunisia?

This semester with Python be Full Stack web Developer

Workshop

Introduction to python Basics

First Steps

  • Start the interpreter on the command

First Steps

  • Using A Source File
  • Executable Python Programs

Variables

  • No Need To Declare Variable Type !
  • Everything Is An Object

 Types(Basic)

  • Integer
  • Float
  • Complex
  • String(immutable)

 Operators

 Operators

 Operators

  • Shortcut

 Indentation

Control Flow

  • if statement

Control Flow

The while Statement

The for loop

Looping Statement

Control Flow

  • The break and continue Statement

Functions

Data Structures

List:

  • ordered collections of arbitrary objects
  • Accessed by offset
  • heterogeneous,and arbitrarily nestable
  • mutable sequence

Data Structures

Data Structures

Problem Solving

Data Structures

Data Structures

  • List Comprehensions

Dictionary:

  • not ordered collections 
  • Accessed by key(only immutable),not offset
  • heterogeneous,and arbitrarily nestable
  • mutable sequence

Data Structures

Data Structures

Tuple:

  • ordered collections of arbitrary objects
  • Accessed by offset
  • heterogeneous,and arbitrarily nestable
  • immutable sequence

Data Structures

Data Structures

Sequences

  • indexing
  • membership tests (i.e. the in and not in expressions)
  • slicing operation

Classes

Syntax:

Classes

Syntax:

Classes

Special method:

Classes

Inheritance:

Made with Slides.com