Talk:O'Reilly Introduction to Python/Section 10

From OpenHatch wiki
< Talk:O'Reilly Introduction to Python
Revision as of 17:14, 15 July 2014 by 171.159.64.10 (talk) (does state capitals require a certain version of python to work?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. python state_capitals.py

What is the capital of West Virginia? Test Traceback (most recent call last):

 File "state_capitals.py", line 60, in <module>
   capital_guess = input("What is the capital of " + state + "? ")
 File "<string>", line 1, in <module>

NameError: name 'Test' is not defined