Python Datatypes


Python has a wide variety of data types, each with its own strengths and weaknesses.

The most common data types are:

Integers

Integers are whole numbers, such as 1, 2, 3, and so on.

Floats

Floats are numbers with decimal points, such as 1.2, 3.4, and so on. Strings: Strings are sequences of characters, such as "Hello, world!"

Lists

Lists are sequences of objects, such as [1, 2, 3], ["Hello", "world!"], and so on.

Tuples

Tuples are sequences of objects that are immutable, meaning that they cannot be changed once they are created. Dictionaries: Dictionaries are mappings between keys and values. Keys are unique identifiers, and values can be any type of object.




Rs. 4.0 Rs. 10.0


Buy Now