0% found this document useful (0 votes)
5 views1 page

Python Basics: Data Types & Structures

The document provides a review of Python basics, covering variables and data types including integers, floats, strings, and booleans. It explains data structures such as lists, tuples, sets, and dictionaries, highlighting their characteristics and providing examples. Additionally, it lists common methods associated with these data structures.

Uploaded by

Gabs Katipunan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Python Basics: Data Types & Structures

The document provides a review of Python basics, covering variables and data types including integers, floats, strings, and booleans. It explains data structures such as lists, tuples, sets, and dictionaries, highlighting their characteristics and providing examples. Additionally, it lists common methods associated with these data structures.

Uploaded by

Gabs Katipunan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PYTHON BASICS REVIEWER

• Variables and Data Types


int, float, string, boolean
• Lists
Ordered, mutable, allows duplicates
Example: nums = [1,2,3]
• Tuples
Ordered, immutable
Example: t = (1,2,3)
• Sets
Unordered, no duplicates
Example: s = {1,2,3}
• Dictionaries
Key-value pairs
Example: d = {"name":"Kyle","age":20}
Common Methods:
append(), insert(), pop(), len()

You might also like