In Python, we can use dict data type to store key value pairs. In this example, customer name can be
>>>name=’John Smith’ >>>print name[:5] + name[5:] Ans: Output of this will be John Smith This is an example of Slicing.
>>> thelist=[‘a’,’b’] >>> print thelist[3:] Ans: The output of this code is following:  Even though the list has only
Some of the popular libraries of Python used for Data analysis are: Pandas: Powerful Python Data Analysis Toolkit SciKit: This
To execute a Python script in Unix, we need to have Python executor in Unix environment. In addition to that
In Python, enumerate() function is an improvement over regular iteration. The enumerate() function returns an iterator that gives (0, item).
In Functional Programming, we decompose a program into functions. These functions take input and after processing give an output. The
We can create a common module with variables that we want to share. This common module can be imported in
We use ‘is’ to check an object against its identity. We use ‘==’ to check equality of two objects. E.g.
Python provides a profiler called cProfile that can be used for profiling Python code. We can call it from our