You're shadowing the built in str
with your variable name:
str = input("Please input "+ str(curcol) +"," + str(currow))
The second time around, with str(currow)
you're trying to call str
, which is now an int
Name it anything but that!
Also, you're in Python 2, so it's far preferred to use raw_input
instead of input