This piece contains some practices about pandas and matplotlib libraries. These are…
Python provides a system that provides to use popular functions and classes by libraries and import to our new programs. Standard libraries, packages, and personal function libraries are created by these modules.
Exception Handling: Try/Except
It is a way to get the error to respond in the way that we want, instead of giving an error message and stopping work
Read a File:
Firstly create a text called essay.txt
In [4]:
%%writefile essay.txtI have a dream that one day this nation will rise up and…
Create a simple list:
Let’s create a generator to create a new list that contains the square of a list.
In [2]:
num=[2,4,6,8,10]sqr=[]for i in num…
If we want to make a copy of a list, let’s make a simple assignment
a=[2,4,5,6,7,8]b=ab
A set is an unsequenced data group unlike lists so we can not reach its elements by indexing. The sets cannot contain the same elements.
two methods to create set:
The string is a sequence data type that is formed by one or more characters. The statements or functions like “len, in, not in, +, * “ are also used in string type.