top of page

04.15.2018: One Lesson of Python

Today's soundtrack is Dream Theater: Six Degrees of Inner Turbulence.

This evening, I'm on to the next chapter in Coding Projects in Python, "Ask the Expert," where I'll make a program that will tell users the capital city of any country. It will also accept user inputs so that it can "learn" capitals to cities that it doesn't yet know. This is the first time that I will be using a dictionary in Python.

I started by creating a text file that the program will save information in and then draw it from, then I imported Tkinter into Python. Next, i wrote code telling Python how to translate and write information in the txt file, then wrote the main program.

It worked!


bottom of page