Python Data Types
Python Data Types
w3schools.com
y
Python For Loops
p
THE WORLD'S LARGEST WEB DEVELOPER SITE
Python Functions
Python Lambda
Python Arrays
Python Classes/Objects
Python Inheritance
Python Data Types
Python Iterators
❮ Previous Next ❯
Python Scope
Python Modules
Python Dates
Python JSON Built-in Data Types
Python RegEx
Python PIP In programming, data type is an important concept.
Python Try...Except
Variables can store data of different types, and different types can do different things.
Python Command Input
Python String Formatting Python has the following data types built-in by default, in these categories:
COLOR PICKER
Getting the Data Type
You can get the data type of any object by using the type() function:
Example HOW TO
Print the data type of the variable x:
Tabs
x = 5 Dropdowns
print(type(x)) Accordions
Side
Navigation
Run example » Top Navigation
Modal Boxes
Progress Bars
Parallax
❮ Previous Next ❯
W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references,
and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read
and accepted our terms of use, cookie and privacy policy. Copyright 1999-2019 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.