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'
Few of the most usually used functions that are used in Python 3 are given below:
- input() - Used to accept an input from the user
- len() - Used to find the length of a array or string variable
- set() - Creates a set (unstructured collection of items)
- max() and min() - Used to find the maximum and minimum length of a string, array or a sequence data variable.
For more information, go through the references below:
- https://www.edureka.co/blog/variables-and-data-types-in-python/
- https://www.edureka.co/blog/python-tutorial/
- https://www.edureka.co/blog/python-programming-language