What makes Python So Awesome
-
Upload
vikash-agrawal -
Category
Education
-
view
1.351 -
download
1
description
Transcript of What makes Python So Awesome
Python - The informal way
Vikash [email protected]
@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
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
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
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
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
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
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
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 11
Who uses Python these days
Youtube
Yahoo
NASA
Cisco
Disney
IBM
Nokia
Redhat
Sugar desktop environment
Vikash (GTUG Manipal) Python - The informal way October 31, 2011 5 / 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
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
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
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
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
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
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
What do you mean by versions, Python is a language
Python as a language keeps on evolving and new features are beingadded to the language, here by versions we refer to the pythoninterpreter version, new features are added to python interpreter inevery 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
Versions of Python
What do you mean by versions, Python is a language
Python as a language keeps on evolving and new features are beingadded to the language, here by versions we refer to the pythoninterpreter version, new features are added to python interpreter inevery 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
Versions of Python
What do you mean by versions, Python is a language
Python as a language keeps on evolving and new features are beingadded to the language, here by versions we refer to the pythoninterpreter version, new features are added to python interpreter inevery 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
Versions of Python
What do you mean by versions, Python is a language
Python as a language keeps on evolving and new features are beingadded to the language, here by versions we refer to the pythoninterpreter version, new features are added to python interpreter inevery 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
Versions of Python
What do you mean by versions, Python is a language
Python as a language keeps on evolving and new features are beingadded to the language, here by versions we refer to the pythoninterpreter version, new features are added to python interpreter inevery 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
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
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
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
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
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
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
Testing Python interpretor
Importing modules
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
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