Python supports 3 categories of data types: Basic Types: (integer,float,complex,boolean and string) Container Types: (List,Tuples,Sets,Dictionary) User-Defined Types: Class Basic types cover that we all have seen in other programming languages. Container type can hold multiple basic data types into a single container, python provides us with 4 options. The first…