Explain any two data types in Python
Answers
Answered by
6
Answer:
Data Types Examples Explanation
Integers 5364 Whole numbers
Floats 3.1415 Decimal Numbers
Booleans True, False Truth values that represent Yes/No
Lists [1,2,3,4,5] A collection of data, sits between
Answered by
2
2 Data Types are as follows :-
Integers – This value is represented by int class. It contains positive or negative whole numbers (without fraction or decimal). In Python there is no limit to how long an integer value can be.
Float – This value is represented by float class. It is a real number with floating point representation. It is specified by a decimal point. Optionally, the character e or E followed by a positive or negative integer may be appended to specify scientific notation.
Hope this helps:)
Similar questions