Python Data Types

Python3 data types

This lecture will covers python data types!


python Built-in Data Types
In programming, data type is an important to know you are play with it.
Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories as shown:

Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview


By knowing the data type of given data al you know it
>>>type(2)
you will get an output says that int data type;

>>>type(2.2)
here you will get an output says that float data type

>>>type(20000000000000)
here it will shows the output is int it seems bigint data type

>>>type('a')
here it will shows you this is string data type

>>>type('i am learning Python')
here it will shows you this is string data type

>>>type(True)
here it will shows you this is boolien data type means true or false

>>>type(False)
here it will shows you this is boolien data type means true or false


python course
Python data science interview questions and answers python is a high-level programming language using Data Science programs these days

Data Science

Web development course Data Science courses: Web Development
Online courseOnline Courses: Include Certification
Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at info@harisystems.com. we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2023 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2023