Python Data Types

अब 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.


संबंधित स्टडी सेट्स

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