Python45 2

278 views
240 views

Published on

Published in: Technology
3 Comments
2 Likes
Statistics
Notes
No Downloads
Views
Total views
278
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
3
Likes
2
Embeds 0
No embeds

No notes for slide

Python45 2

  1. 1. Python 45 Minutes #2 by: @alSayedGamal
  2. 2. Last Hangout Find python and run your python code/ program. Python basic syntax. Python expressions, flow control and functions. Simple script to rate presenters based on raw_input().
  3. 3. In this hangout Data types/ containers to be continued functions to be continued. Last hangout script(Re-Read). Exceptions (Fail fast). Code organization / Using Modules. Files and IO
  4. 4. Types Lists, Tuples, Sets, Dictionaries, etc..
  5. 5. Types (Again) Strings List Tuple Dictionary Set Collection Transition
  6. 6. Function Functions are FUN.
  7. 7. More(Functions) Definition Argument Passing Mutable argument and Default values Accepting variable arguments Unpacking argument list Scope
  8. 8. Sorting Problem vs Comparison Problem
  9. 9. Sorted(List) Sorting problem How python sort ? Have a better idea ? Input() vs. Raw_input() Simple loop
  10. 10. Exceptions What if something went wrong?
  11. 11. Exceptions Try .. Catch Except Try:, Except:(, Finally:, Else:) Fail Fast* *I’ll be posting martin fowler’s paper on event’s page.
  12. 12. Code organization
  13. 13. Namespace and modules Namespaces Import module Create module
  14. 14. Got a burning question ?
  15. 15. Thank you @alsayed Gamal - GDG Mansoura

×