Python DataTypes
As you all know that, Python is object oriented programming Language. Data Types are actually classes and variables are instance object of these classes. Data Types defines the type of the variable, whether it is an integer variable, string variable, dictionary variable ...e.t.c.
Python has built-in Data types :
1. Immutable(unchangeable) Data Types:
- Numeric-Integer(int), Floating point(float), Complex Number(complex)
- String(str)
- Tuple(tuple)
2.Mutable (changeable) Data Types:
- List(list)
- Dictionary(dict)
- Set(set)
3.Binary Data Types:
- Bytes(byte)
- Bytearray(bytearray)
- MemoryView(memoryview)
Comments
Post a Comment