Maps in Logo
Based on the input provided, I’ll extract the relevant information and translate the Go code example to Python.
Maps are the built-in associative data type (sometimes called hashes or dicts in other languages).
To run the program, save the code in a file, say maps_example.py
and use the Python interpreter to execute it.
Note that dictionaries appear in the form {'k': 'v', 'k': 'v'}
when printed with the print
function.
Now that we can run and build basic Python programs, let’s learn more about the language.
Next example: Functions.