Documente Academic
Documente Profesional
Documente Cultură
Regular Expressions
Installation / Environment
Setup
Python 2.7.11
https://www.python.org/ftp/python/2.7.11/python-2.7.11.msi (windows)
https://www.python.org/ftp/python/2.7.11/python-2.7.11-macosx10.6.pkg (mac OS-X)
Eclipse
Release : Mars
PyDev
Python IDE for Eclipse
Basic Operators, Decision
Making & Loops
Variable Types
Numbers
int (signed integers)
long (long integers, they can also be represented in octal and hexadecimal)
float (floating point real values)
complex (complex numbers)
String
List (Lists similar to arrays in c, but can have different data type)
Nested Loops
Break
Continue
Pass
Function, Files I/O,
Exception Handling
Function
User Input
Raw_input
Input
Try try:
You do your operations here;
Except except ExceptionI:
If there is ExceptionI, then execute this block.
Else except ExceptionII:
If there is ExceptionII, then execute this block.
Finally except:
If there is any exception, then execute this block
else:
If there is no exception then execute this block.
finally:
This would always be executed.
Regular Expressions