06 What are
types? Explain any two dato types
in python
Answers
Answer:
I hope this answer is useful for you
Explanation:
Python provides an array of built-in constants, data types, variables, functions, and exceptions for customizable use. Few of the most widely used datatypes are given below:
Boolean operators - Used for comparing data. Literals used - 'and', 'or', 'not'
Numeric datatype - Used for defining numerical data types. Literals used - 'int', 'float', 'complex'
Sequence datatype - Used to define and perform operations on a collection data type variable. Literals used - 'list', 'tuple', 'range'
Text sequence datatype - Used to define and utilize character arrays in a program. Literal used - 'str'
Mapping datatype - Used for defining a dictionary with words and meanings attached to the words. Literal used - 'dict'
I hope it is helpful for you