Data types! Flashcards
What are data types?
Data types are classifications that categorise various types of data that are stored in variables.
What is int(integer)?
Represents integral numbers(numbers without any fractional part)There are three types; integer, long integer and boolean.
Explain the types of integer in python.
integer(int)- represents values in the range for -2147483648 to 2147483647. long integer(long int)-support the values that lie beyond the range of integers. boolean(bool)-It represents logical values in the form of true and false, where 0 represents False and 1 represents True
What is float?
Represents floating point values(numbers with a fractional part). The fractional part of a floating point number may also be 0.
What is string(str)
A string data type represents strings of characters enclosed within single or double quotation marks(‘ ‘ or “ “)