Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created January 18, 2024 21:32
Show Gist options
  • Save stephengruppetta/1f94855e5d7f35bbd31f7f06cfbd2889 to your computer and use it in GitHub Desktop.
Save stephengruppetta/1f94855e5d7f35bbd31f7f06cfbd2889 to your computer and use it in GitHub Desktop.
street = (
{
"House number": 1,
"Residents": "The Cleeses",
"Number of residents": 3,
},
{
"House number": 3,
"Residents": "The Gruppettas",
"Number of residents": 4,
},
{
"House number": 5,
"Residents": "The Palins",
"Number of residents": 2,
},
# ... Rest of the street,
# first the odd numbers up to 17,
# and then from 18 down to 2
)
# Confirming the data types we're using
print(type(street))
# <class 'tuple'>
print(type(street[0]))
# <class 'dict'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment