Data Types in Python
In programming, data type is an important concept. Variables can store data of different types, and different types can do different things. Python has the data types built-in by default, in these various categories such as Boolean , Binary ,mapping, text , sequence ,set , numeric . we want to which data type that variable have then we can use the type() function. so there is combination of both non-primitive and primitive data structures. Dictionary which is one of them is like real world dictionary. Its stores data as key values pair. Member of Dictionary accessed using key. Tuple is Immutable list of python objects. Once assigned the tuple elements can be changed. List is mutable element. Set are used to store multiple items in single variable. Now about other data types, Text type is string i.e. str which is collection of data. Numeric type consists of int, float and complex. Boolean is data type that returns the two values true and false. Others are rarely used data types which are binary and set. So in next chapter , we will discuss about strings and string methods ……till then have a great day!!