Programming Cheat Sheets

Creating List in Python

Lists are probably the most versatile data structures in Python. A list can be defined by writing a list of comma separated values in square brackets. Lists might contain items of different types. Python lists are mutable – individual elements of a list can be changed while the identity does not change. Country =[‘NEPAL’,’INDIA’,’USA’,’GERMANY’,’UK’,’AUSTRALIA’] Temperature …

Introduction to NumPy: useful cheat sheets

The NumPy library is the core library for scientific computing in Python. It provides a high-performance multidimensional array object, and tools for working with these arrays. This post is an effort to collect useful numpy commands in one place to make your computing task easier. Before moving forward, make sure that you’ve installed Python and …