I am fairly new to programming and I've been experimenting with dictionaries in Python. However, I just updated to Python 3.4 and code that was previously usable is not functioning properly after the update. I thought I had cleared most everything up, but now my dictionary seems to be broken.
The code runs fine until I try to call on the dictionary. Here is an example of code that previously worked correctly in Python 2.7:
userPrompt = input("Month: ")
months = {
1: jan,
2: feb,
3: mar,
}
months[userPrompt]()
It seems to have an issue with that final line. Do I need to write the dictionary differently, or address it differently?