Tuple in Python
Tuples are ordered collection of data items. They store multiple items in a single variable. Tuple items are separated by commas and enclosed within round brackets (). Tuples are unchangeable meaning we cannot alter them after creation.
Syntax # Creating a tuple
tuple_name = (item1, item2, item3)
Creating Python Dictionary To create a dictionary in python, place items inside curly braces {} separated by commas. The items contains the ‘Key Value’ pairs enclosed within curly braces and Keys and values are separated with ‘:’ colon.
Syntax dictionary_name = {key: value, key2: value2}