And Seek


#1

Hello, I am completing this section in CC and Python 3. The following code works in CC, but generates an error in Python. Any suggestions?

Code:
guess_row = int(raw_input("Guess Row: "))
guess_col = int(raw_input("Guess Col: "))

Python 3 error:
guess_row = int(raw_input("Guess Row: "))
NameError: name 'raw_input' is not defined


#2

In Python 3, raw_input is now input.


#3

Thanks @datfatcat. Error is now gone


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.