The following are Python's standard or built-in data types:
- Numeric
- Sequence Type
- Boolean
- Set
- Dictionary
Numeric
The numeric data type in Python represents data with a numeric value. Integers, floating numbers, and even complex numbers can be used to represent numerical values. In Python, these values are defined by the int, float, and complex classes.
The int class is used to represent this value. There are both positive and negative whole numbers in it(without fraction or decimal). In Python, the length of an integer value is unlimited.
Float
The float class represents this value. It is a real number with floating point representation. A decimal point is used to specify it.
Complex Numbers
Complex class represents complex numbers. It is specified as (real part) + (imaginary part)j.
For example :- 4+5j
Note:- The type() function is used to determine the data type.
USEFULL FULL FORMS
IDE :- Integrated Development Environment.
IDLE :- Integrated Development and Learning Environment.
1 Comments
ReplyDeleteKeep it up
Post a Comment