SlideShare a Scribd company logo
Python - The informal way

        Vikash Agrawal
 vikashagrawal1990@gmail.com
        @ivikashagrawal

Google Technology Users Group, Manipal


        October 31, 2011
Index

1   Awesome Languages

2   History

3   Who uses Python

4   How far from C/C++/Java

5   Versions of Python

6   Language Basics

7   Codes

8   Que and Ans


    Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   2 / 11
Awesome Language




   Name any Awesome language




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   3 / 11
Awesome Language




   Name any Awesome language
   Why is it awesome?




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   3 / 11
Awesome Language




   Name any Awesome language
   Why is it awesome?
   Don’t worry we wont go into language wars




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   3 / 11
History




   Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   4 / 11
History




    Developed in early 90s by Guido van Rossum




   Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   4 / 11
History




    Developed in early 90s by Guido van Rossum
    Its Simple, Portable, Open Source and Powerfull



   Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   4 / 11
Who uses Python these days




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google
   Youtube




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google
   Youtube
   Yahoo




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google
   Youtube
   Yahoo
   NASA




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google
   Youtube
   Yahoo
   NASA
   Cisco




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   5 / 11
Who uses Python these days




   Google                                      Disney
   Youtube
   Yahoo
   NASA
   Cisco




  Vikash (GTUG Manipal)   Python - The informal way     October 31, 2011   5 / 11
Who uses Python these days




   Google                                      Disney
   Youtube                                     IBM
   Yahoo
   NASA
   Cisco




  Vikash (GTUG Manipal)   Python - The informal way     October 31, 2011   5 / 11
Who uses Python these days




   Google                                      Disney
   Youtube                                     IBM
   Yahoo                                       Nokia
   NASA
   Cisco




  Vikash (GTUG Manipal)   Python - The informal way     October 31, 2011   5 / 11
Who uses Python these days




   Google                                      Disney
   Youtube                                     IBM
   Yahoo                                       Nokia
   NASA                                        Redhat
   Cisco




  Vikash (GTUG Manipal)   Python - The informal way     October 31, 2011   5 / 11
Who uses Python these days




   Google                                      Disney
   Youtube                                     IBM
   Yahoo                                       Nokia
   NASA                                        Redhat
   Cisco                                       Sugar desktop environment




  Vikash (GTUG Manipal)   Python - The informal way          October 31, 2011   5 / 11
How far Python is from C/C++/Java




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)
   English-like-syntax




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)
   English-like-syntax
   Interpreted (?)




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)
   English-like-syntax
   Interpreted (?)
   Procedure (?) / Object-Oriented (?)




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)
   English-like-syntax
   Interpreted (?)
   Procedure (?) / Object-Oriented (?)
   Very good for scripting




  Vikash (GTUG Manipal)      Python - The informal way   October 31, 2011   6 / 11
How far Python is from C/C++/Java




   No pointers (Similar to Java) :-)
   English-like-syntax
   Interpreted (?)
   Procedure (?) / Object-Oriented (?)
   Very good for scripting
   Includes garbage colector (?)




  Vikash (GTUG Manipal)      Python - The informal way   October 31, 2011   6 / 11
Versions of Python




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   7 / 11
Versions of Python




   What do you mean by versions, Python is a language




  Vikash (GTUG Manipal)   Python - The informal way     October 31, 2011   7 / 11
Versions of Python




   What do you mean by versions, Python is a language
   Python as a language keeps on evolving and new features are being
   added to the language, here by versions we refer to the python
   interpreter version, new features are added to python interpreter in
   every release.




  Vikash (GTUG Manipal)    Python - The informal way     October 31, 2011   7 / 11
Versions of Python




   What do you mean by versions, Python is a language
   Python as a language keeps on evolving and new features are being
   added to the language, here by versions we refer to the python
   interpreter version, new features are added to python interpreter in
   every release.
   Important versions are Python 2.6/2.7 and Python 3.0/3.1




  Vikash (GTUG Manipal)    Python - The informal way     October 31, 2011   7 / 11
Versions of Python




   What do you mean by versions, Python is a language
   Python as a language keeps on evolving and new features are being
   added to the language, here by versions we refer to the python
   interpreter version, new features are added to python interpreter in
   every release.
   Important versions are Python 2.6/2.7 and Python 3.0/3.1
   Currently focus only on Python 2.6/2.7




  Vikash (GTUG Manipal)    Python - The informal way     October 31, 2011   7 / 11
Language Basics




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   8 / 11
Language Basics




   In Python indentation is very important




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   8 / 11
Language Basics




   In Python indentation is very important
   There are no end/begin delimiteres like { }




  Vikash (GTUG Manipal)    Python - The informal way   October 31, 2011   8 / 11
Language Basics




   In Python indentation is very important
   There are no end/begin delimiteres like { }
   Grouping of statements are done on basis of their indentation




  Vikash (GTUG Manipal)    Python - The informal way    October 31, 2011   8 / 11
Language Basics




   In Python indentation is very important
   There are no end/begin delimiteres like { }
   Grouping of statements are done on basis of their indentation
   Statements at same indentation are grouped together in a single block




  Vikash (GTUG Manipal)    Python - The informal way    October 31, 2011   8 / 11
Language Basics




   In Python indentation is very important
   There are no end/begin delimiteres like { }
   Grouping of statements are done on basis of their indentation
   Statements at same indentation are grouped together in a single block
   # marks start of comment (single line)




  Vikash (GTUG Manipal)    Python - The informal way    October 31, 2011   8 / 11
Lets code




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   9 / 11
Lets code




                                              Testing Python interpretor




  Vikash (GTUG Manipal)   Python - The informal way           October 31, 2011   9 / 11
Lets code




                                              Testing Python interpretor
                                              Importing modules




  Vikash (GTUG Manipal)   Python - The informal way           October 31, 2011   9 / 11
Question and Answers




   Please Ask Your doubts




  Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   10 / 11
Thank You!!!




Vikash (GTUG Manipal)   Python - The informal way   October 31, 2011   11 / 11

More Related Content

PDF
Intro to Git
PDF
VirtualJUG24 - Testing with Spock: The logical choice
PDF
Python Ecosystem
ODP
Git slides
KEY
PyCon JP 2011 Lightning Talk No.10
PPTX
Git & git hub
PDF
London Java Community 2016 - Testing with Spock: The logical choice
Intro to Git
VirtualJUG24 - Testing with Spock: The logical choice
Python Ecosystem
Git slides
PyCon JP 2011 Lightning Talk No.10
Git & git hub
London Java Community 2016 - Testing with Spock: The logical choice

What's hot (9)

PDF
Knowing your garbage collector - PyCon Italy 2015
PDF
JavaCro 2016 - Testing with Spock: The Logical choice
PDF
RigaDevDay 2016 - Testing with Spock: The Logical Choice
PDF
OWF14 : Project & Community driving track : The PostgreSQL Project - An examp...
PPTX
(PyHUG) Python Online Resource for Taiwan Developer
KEY
LLPlanets Lightning Talk Presentation No.8
PDF
PDF
Git
ODP
Besut Kode - Workshop 1
Knowing your garbage collector - PyCon Italy 2015
JavaCro 2016 - Testing with Spock: The Logical choice
RigaDevDay 2016 - Testing with Spock: The Logical Choice
OWF14 : Project & Community driving track : The PostgreSQL Project - An examp...
(PyHUG) Python Online Resource for Taiwan Developer
LLPlanets Lightning Talk Presentation No.8
Git
Besut Kode - Workshop 1
Ad

Viewers also liked (20)

PDF
Let's read code: python-requests library
PDF
Python for the Network Nerd
PPTX
Network testing course
PPTX
Device Programmability with Cisco Plug-n-Play Solution
PPTX
NetDevOps for the Network Dude: How to get started with API's, Ansible and Py...
PPTX
Open Device Programmability: Hands-on Intro to RESTCONF (and a bit of NETCONF)
DOCX
PPTX
3Com 3C13770A
PPTX
Renk sunumu
PDF
STORYTELLING: КАК РАЗРАБОТАТЬ КУРС В ВОВЛЕКАЮЩИМ СЦЕНАРИЕМ
PDF
Hp moonshot update moabcon 2013
PDF
Jamia Noman Report
PPTX
Topologia de red
PPTX
El gusto
PDF
CASE Network Studies and Analyses 332 - Регуляторная среда и тенденции развит...
PPSX
Circunferencia y círculo 2011
PDF
فلسفة العلم في القرن العشرين
ODP
Power point du goûter
PDF
Kingpin-Technology-Marketing-Report-2015
PPTX
Let's read code: python-requests library
Python for the Network Nerd
Network testing course
Device Programmability with Cisco Plug-n-Play Solution
NetDevOps for the Network Dude: How to get started with API's, Ansible and Py...
Open Device Programmability: Hands-on Intro to RESTCONF (and a bit of NETCONF)
3Com 3C13770A
Renk sunumu
STORYTELLING: КАК РАЗРАБОТАТЬ КУРС В ВОВЛЕКАЮЩИМ СЦЕНАРИЕМ
Hp moonshot update moabcon 2013
Jamia Noman Report
Topologia de red
El gusto
CASE Network Studies and Analyses 332 - Регуляторная среда и тенденции развит...
Circunferencia y círculo 2011
فلسفة العلم في القرن العشرين
Power point du goûter
Kingpin-Technology-Marketing-Report-2015
Ad

Similar to What makes Python So Awesome (20)

PDF
Introduction of Python
PDF
Computer Related material named Phython ok
PDF
What is Python? (Silicon Valley CodeCamp 2014)
PPTX
Python.pptx
PDF
Programming with Python - Basic
PPT
1-ppt-python.ppt
PPT
Python for students step by step guidance
PPTX
11 Unit1 Chapter 1 Getting Started With Python
PDF
Anton Kasyanov, Introduction to Python, Lecture1
PPTX
Chapter 8 getting started with python
PDF
05 python.pdf
PDF
session5-Getting stated with Python.pdf
PPT
It covers the various basics and fundamentals aspect of Python Programing
PDF
Python Programming Part 1.pdf
PDF
Python Programming Part 1.pdf
PPTX
python programminig and introduction.pptx
PPT
Python programming-2-2048 (30 files merged).ppt
PPT
Python programming notes all in one python ppt
PDF
What is Python?
PPTX
Python Class 1
Introduction of Python
Computer Related material named Phython ok
What is Python? (Silicon Valley CodeCamp 2014)
Python.pptx
Programming with Python - Basic
1-ppt-python.ppt
Python for students step by step guidance
11 Unit1 Chapter 1 Getting Started With Python
Anton Kasyanov, Introduction to Python, Lecture1
Chapter 8 getting started with python
05 python.pdf
session5-Getting stated with Python.pdf
It covers the various basics and fundamentals aspect of Python Programing
Python Programming Part 1.pdf
Python Programming Part 1.pdf
python programminig and introduction.pptx
Python programming-2-2048 (30 files merged).ppt
Python programming notes all in one python ppt
What is Python?
Python Class 1

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Pre independence Education in Inndia.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Classroom Observation Tools for Teachers
PPTX
Institutional Correction lecture only . . .
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Lesson notes of climatology university.
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
01-Introduction-to-Information-Management.pdf
RMMM.pdf make it easy to upload and study
Renaissance Architecture: A Journey from Faith to Humanism
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
Module 4: Burden of Disease Tutorial Slides S2 2025
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
Pre independence Education in Inndia.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Classroom Observation Tools for Teachers
Institutional Correction lecture only . . .
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cell Types and Its function , kingdom of life
Lesson notes of climatology university.
Pharmacology of Heart Failure /Pharmacotherapy of CHF

What makes Python So Awesome

  • 1. Python - The informal way Vikash Agrawal vikashagrawal1990@gmail.com @ivikashagrawal Google Technology Users Group, Manipal October 31, 2011
  • 2. Index 1 Awesome Languages 2 History 3 Who uses Python 4 How far from C/C++/Java 5 Versions of Python 6 Language Basics 7 Codes 8 Que and Ans Vikash (GTUG Manipal) Python - The informal way October 31, 2011 2 / 11
  • 3. Awesome Language Name any Awesome language Vikash (GTUG Manipal) Python - The informal way October 31, 2011 3 / 11
  • 4. Awesome Language Name any Awesome language Why is it awesome? Vikash (GTUG Manipal) Python - The informal way October 31, 2011 3 / 11
  • 5. Awesome Language Name any Awesome language Why is it awesome? Don’t worry we wont go into language wars Vikash (GTUG Manipal) Python - The informal way October 31, 2011 3 / 11
  • 6. History Vikash (GTUG Manipal) Python - The informal way October 31, 2011 4 / 11
  • 7. History Developed in early 90s by Guido van Rossum Vikash (GTUG Manipal) Python - The informal way October 31, 2011 4 / 11
  • 8. History Developed in early 90s by Guido van Rossum Its Simple, Portable, Open Source and Powerfull Vikash (GTUG Manipal) Python - The informal way October 31, 2011 4 / 11
  • 9. Who uses Python these days Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 10. Who uses Python these days Google Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 11. Who uses Python these days Google Youtube Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 12. Who uses Python these days Google Youtube Yahoo Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 13. Who uses Python these days Google Youtube Yahoo NASA Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 14. Who uses Python these days Google Youtube Yahoo NASA Cisco Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 15. Who uses Python these days Google Disney Youtube Yahoo NASA Cisco Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 16. Who uses Python these days Google Disney Youtube IBM Yahoo NASA Cisco Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 17. Who uses Python these days Google Disney Youtube IBM Yahoo Nokia NASA Cisco Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 18. Who uses Python these days Google Disney Youtube IBM Yahoo Nokia NASA Redhat Cisco Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 19. Who uses Python these days Google Disney Youtube IBM Yahoo Nokia NASA Redhat Cisco Sugar desktop environment Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
  • 20. How far Python is from C/C++/Java Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 21. How far Python is from C/C++/Java No pointers (Similar to Java) :-) Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 22. How far Python is from C/C++/Java No pointers (Similar to Java) :-) English-like-syntax Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 23. How far Python is from C/C++/Java No pointers (Similar to Java) :-) English-like-syntax Interpreted (?) Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 24. How far Python is from C/C++/Java No pointers (Similar to Java) :-) English-like-syntax Interpreted (?) Procedure (?) / Object-Oriented (?) Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 25. How far Python is from C/C++/Java No pointers (Similar to Java) :-) English-like-syntax Interpreted (?) Procedure (?) / Object-Oriented (?) Very good for scripting Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 26. How far Python is from C/C++/Java No pointers (Similar to Java) :-) English-like-syntax Interpreted (?) Procedure (?) / Object-Oriented (?) Very good for scripting Includes garbage colector (?) Vikash (GTUG Manipal) Python - The informal way October 31, 2011 6 / 11
  • 27. Versions of Python Vikash (GTUG Manipal) Python - The informal way October 31, 2011 7 / 11
  • 28. Versions of Python What do you mean by versions, Python is a language Vikash (GTUG Manipal) Python - The informal way October 31, 2011 7 / 11
  • 29. Versions of Python What do you mean by versions, Python is a language Python as a language keeps on evolving and new features are being added to the language, here by versions we refer to the python interpreter version, new features are added to python interpreter in every release. Vikash (GTUG Manipal) Python - The informal way October 31, 2011 7 / 11
  • 30. Versions of Python What do you mean by versions, Python is a language Python as a language keeps on evolving and new features are being added to the language, here by versions we refer to the python interpreter version, new features are added to python interpreter in every release. Important versions are Python 2.6/2.7 and Python 3.0/3.1 Vikash (GTUG Manipal) Python - The informal way October 31, 2011 7 / 11
  • 31. Versions of Python What do you mean by versions, Python is a language Python as a language keeps on evolving and new features are being added to the language, here by versions we refer to the python interpreter version, new features are added to python interpreter in every release. Important versions are Python 2.6/2.7 and Python 3.0/3.1 Currently focus only on Python 2.6/2.7 Vikash (GTUG Manipal) Python - The informal way October 31, 2011 7 / 11
  • 32. Language Basics Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 33. Language Basics In Python indentation is very important Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 34. Language Basics In Python indentation is very important There are no end/begin delimiteres like { } Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 35. Language Basics In Python indentation is very important There are no end/begin delimiteres like { } Grouping of statements are done on basis of their indentation Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 36. Language Basics In Python indentation is very important There are no end/begin delimiteres like { } Grouping of statements are done on basis of their indentation Statements at same indentation are grouped together in a single block Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 37. Language Basics In Python indentation is very important There are no end/begin delimiteres like { } Grouping of statements are done on basis of their indentation Statements at same indentation are grouped together in a single block # marks start of comment (single line) Vikash (GTUG Manipal) Python - The informal way October 31, 2011 8 / 11
  • 38. Lets code Vikash (GTUG Manipal) Python - The informal way October 31, 2011 9 / 11
  • 39. Lets code Testing Python interpretor Vikash (GTUG Manipal) Python - The informal way October 31, 2011 9 / 11
  • 40. Lets code Testing Python interpretor Importing modules Vikash (GTUG Manipal) Python - The informal way October 31, 2011 9 / 11
  • 41. Question and Answers Please Ask Your doubts Vikash (GTUG Manipal) Python - The informal way October 31, 2011 10 / 11
  • 42. Thank You!!! Vikash (GTUG Manipal) Python - The informal way October 31, 2011 11 / 11