DATA TYPES
Data types defines which type of data is used or stored in a variable, such as a :- number, alphabet or string. Each data type has a different size
These are some common data type of python
Name |
Type |
Size (in bytes) |
Description |
Integers |
Int |
4 |
Numbers such as: 4, 458 |
Long |
8 |
||
Floating point |
Float |
4 |
Numbers with decimal point such as: 48.5 |
String |
String |
|
Sequence of character: Nice to meet you Mr.
Python |
Boolean |
Bool |
1 |
True or false (0 or 1) |
How to find data type of object?
You can find by using below code.
0 Comments