Built-in data types: str, int, float, complex, list, tuple, range, dict, set, bool, bytes.
Python Programming
Python Tutorial
Python Collections
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Built-in Types
6 min read
•
Chapter 7 of 20
Python Data Types
Built-in data types: str, int, float, complex, list, tuple, range, dict, set, bool, bytes.
Example
<!DOCTYPE html><html><body style="font-family:monospace;padding:20px;"><pre>x = 5 # int\ny = 3.14 # float\nz = "Tax" # str\nw = True # bool\nprint(type(x)) # <class 'int'></pre></body></html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!