Python has few built in commands, most of the strength of python is the modules that can be imported into python. Basic Python has 4 types of objects, numbers 1,2,3, strings 'hello', lists and dictionaries. Here are some of the built in commands.
Python's functionality comes the large number of modules that can be imported to do just about anything. For all of the examples below first the module must be imported we will assume with just the name of the module though it can be anything.
Module SYS:
list = sys.argv - list will be anything included on the command line after your python file. list[0] is the file name.
Module OS:
os.listdir('string') - lists the contents of the provided string, does not take wildcards.
Module GLOB:
glob.glob('string') - lists the files that match string
Module NUMPY:
x=np.array([1,2,3])
x=np.arange(begin, end, step, dtype=np.float)
v=np.isfinite(x)
v=np.amax(x)
v=np.amin(x)
MatPlotLib
import matplotlib.pyplot as plt
plt.plot(x,y,'b-')