You can iterate through dictionaries too:
Strings have many built in methods:
Strings are also a kind of list, and substrings can be accessed with string[start,end]
But there is an error! R always appears as "RR" -- so we will replace "RR" with "R"
A better way to do this is:
Let's start from a loop that prints the values to the screen
Then expand this to writing a file object:
In [ ]: