-
‘Build-in’
len()
max()
range()
open() -
Defining a function
def function_name(list of parameters):
body of function -
Calling a function
function_name(arguements)
When the Function is used, the parameters are bound to the arguements
Useful Python Modules
#re - Regular expression operations
#datetime - Basic date and time types
#math - Mathematical functions
#random - Generate pseudo-random numbers
#os.path - Common pathname manipulations
#pickle - Python object serialization
#csv - Csv file reading and writing
#json - Json encoder and decoder
Useful Python Packages
#numpy - Scientific computing with multi-dimensional arrays
#pandas - Data analysis with table-like structures(R, pretty much)
#statsmodels - Statistical data analysis with linear models
#scikit-learn - Data mining and machine learning
#networkx - Network analysis
#matplotlib - Plotting