Skip to content
Introduction to Python Notes
Introduction to Python
- use # to add a comment
- Functions such as int(), float() and bool() will help you convert Python values into any type.
- list=[] can contain a mix of all Python types.
- help(function_name) / ?function_name : works like manual
- iterable: any collection of objects
- pip3 install package_name
NumPy
- a numeric python list, cannot contain elements of different types, but you can perform math operations on the whole array
- np.array(): a function that converts lists to a numpy array
- array_name.shape: gives the shape of a multidimentional array
Add your notes here