python45s - session 01

11
Python 45 minutes AlSayed Gamal

Upload: al-sayed-gamal

Post on 19-May-2015

107 views

Category:

Education


2 download

DESCRIPTION

Series of technical hangout from Mansoura GDG with love

TRANSCRIPT

Page 1: Python45s - Session 01

Python 45 minutesAlSayed Gamal

Page 2: Python45s - Session 01

About me

AlSayed Gamal Abdul-Azeem

CSE - Mansoura University

web, python, django, ruby, rails, PHP, and some mobile experience.

Twitter: @AlSayedGamal

Use the hashtag #python45s

Page 3: Python45s - Session 01

AgendaInteractive Python

Types and Variables

Expressions

Types again

Functions

The land of hypocrisy

Page 4: Python45s - Session 01

Interactive Python

Find Python

Find help

_

File a python code

Page 5: Python45s - Session 01

Types

Strings

Integers

Floats

(3/4) vs.(3.0/4.0)

Page 6: Python45s - Session 01

Expressions

Operators

Boolean evaluation

“You” are True ?

If, elif, else

Block structure

Page 7: Python45s - Session 01

More TypesList

String (Again)

Tupels

Dictionaries

Sets

Co$ection Transitions

Page 8: Python45s - Session 01

FunctionsDefinition

Argument Passing

Mutable Arguments and Binding of Default Values

Variable arguments

Unpacking arguments

Scope

Page 9: Python45s - Session 01

The land of hypocrisy

Functions are first class citizens, you ?

Sorting the presenters on lie scale.

raw_input vs. input

result= sorted(list, cmp=<compare-function>)

Page 10: Python45s - Session 01

Questions?

Page 11: Python45s - Session 01

Thank you!