Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

Can anyone tell me what are the data types in python?

1 Answer

0 votes
by (107k points)

Data types in any programming language are used to define the operations possible on the variables and the storage method for each of them.

There are two types of data types: Mutable and immutable. Mutable datatypes are the objects that can be modified and altered (i.e. adding new elements, removing an element, replacing an element) even after creating object. The mutable objects in Python are: List, Dictionary, Set, Array, etc.

Immutable data types are the objects that cannot be modified and altered (i.e. adding new elements, removing an element, replacing an element) after creating an object. The immutable data types in Python are Tuple, int, float, complex, string frozen set [note: an immutable version of the set], bytes, etc.

If you wish to learn Python from an online course, then enroll in this Python Course by Intellipaat provides instructor-led training, lifetime access, certification, and job assistance.

Related questions

0 votes
1 answer
asked May 30, 2020 in Python by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked May 30, 2020 in Python by Sudhir_1997 (55.6k points)
0 votes
1 answer
0 votes
1 answer
–1 vote
3 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...