Back to Lesson

Grid Configuration

Use a tuple as a dictionary key to store a grid value.

Instructions

  • Create a dictionary called
    grid
  • Add a key-value pair where the key is the tuple
    (5, 7)
    and the value is the string
    "Mined"
  • Print the value stored at the key
    (5, 7)
    from the dictionary.
main.py
main.py