Python Data Types

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Dictionary

Dictionaries are used to store data values in "key:value" pairs. A dictionary is a collection which is unordered, changeable, and does not allow duplicates. Dictionaries are written with curly brackets, and have keys and values.

List

Lists are used to store multiple items in a single variable. List items are ordered, changeable, and allow duplicate values. Lists are written with square brackets.

Set

Sets are used to store multiple items in a single variable. A set is a collection of items which is both unordered and unindexed. Sets are written with curly braces.

Tuple

Tuples are used to store multiple items in a single variable. Tuple items are ordered, unchangeable, and allow duplicate values. Tuples are written with curly brackets.


Set pelajaran terkait

Common Sports Injuries and Prevention

View Set

Econ Chapter 20 Practice Questions

View Set

S.S.- Ch. 8 Ancient China : Review part 4

View Set

Chapter 31: Assessment and Management of Patients With Hypertension

View Set