Questions

What is Datatype in Python?

We can say Python data types are collections of data items that help us classify or categorise data. Every value in Python has a data type, and every data type is a class that stores a variable (object). Lets see the datatype in python. 

If we look at all the various data types in Python, there are nine data types. The integer, float, and complex data types fall under the numerical data type. They store numerical values as whole numbers, floating-point numbers, and complex numbers, respectively.

List, tuple, and strings come under the sequence data type that can store data in order. They are flexible and we can change each item in their sequence. 

Dictionary and set data types are unique. While a set is unorganised and unindexed, a dictionary is ordered. However, it is non-indexed and we define an item as a key:value pair. Apart from these, there is the boolean data type that stores data in the form of true or false.

Related Questions

Related Topics

Share with friends

Customize your course in 30 seconds

Which class are you in?
5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.
tutor
tutor
Ashhar Firdausi
IIT Roorkee
Biology
tutor
tutor
Dr. Nazma Shaik
VTU
Chemistry
tutor
tutor
Gaurav Tiwari
APJAKTU
Physics
Get Started

Leave a Reply

avatar
  Subscribe  
Notify of

Customize your course in 30 seconds

Which class are you in?
No thanks.