DEV Community

loading...

Which type of these is not a Core Data Type in Python?

Lakshya Tyagi
・1 min read

Comment your answer in comment

  1. Dictionary
  2. Tuples
  3. Class
  4. Lists

Discussion (11)

Collapse
tominekan profile image
Tomi Adenekan

I am not sure but I believe it is 1. Class because a class is not a method of storing data as much as modeling objects. Please correct me if I am wrong 😀.

Collapse
jchiavaro profile image
Jorge Chiavaro

Class because classes are used to define custom data types. The others are built in types

Collapse
stokesm profile image
Matthew Stokes

None of the above?

Class is itself a data type on python. Hence you can dynamically create class definitions.

Collapse
lakshyatyagi24 profile image
Lakshya Tyagi Author

Yes you are correct

Collapse
deepak profile image
Collapse
toghrulagayev profile image
toghrulAgayev

First thing comes to mind is class. Because other are for to store data. Class is completely different.

Collapse
promikecoder2020 profile image
Collapse
sambhavjindalgithub profile image
Collapse
techonerd profile image
Ranjeet Singh

class is not any datatype. Data can be dict, tuple, list but never be a class.

Collapse
dibyadarshan8 profile image
Collapse
bhaskarsrinivask profile image
Forem Open with the Forem app