Python - built-in datatypes

0 points
Created by:
Admin Dirask Community

In this article, we would like to show you built-in datatypes in Python.

Built-in datatypes

Numeric typesint, float, complex
Text typesstr
Boolean typesbool
Sequence typeslist, tuple, range
Mapping typesdict
Set typesset, frozenset
Binary typesbytes, bytearray, memoryview


You can check the data type using type() method.

text = 'a'
print(type(text))  # str
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂