python 3.x - Syntax error unexpected EOF while parsing -


I am creating a number guessing game that covers 4 .py files and 1 .txt file. The problem is that on Part2 (there: main.py, part1.py, part2.py and part3.py) I get a syntax error. (The title was just that I was allowed to post the question.) This is my code. While (gussestaken & lt; estimate) try: estimate = int (input ("guess:")) gussestaken = (guessestaken + 1) If the estimate & gt; Maximum or Estimate & lt; 0: print ('Please,% s, enter a valid option. Remember the maximum'% '(name, maxNumer))

During parsing I get a syntax error unexpected eof Right after the final bracket

If you type ValueError (when the user has given a string's information) , Then try it:

  while (gussestaken & lt; estimate): try: estimate = int (input ("guess:")) gussestaken = (guessestaken + 1) Gt; Maximum or Estimate & lt; 0: print ('Please,% s, enter a valid option. Remember the maximum maximum is%.'% (Name, maxNumer) except the valueError: print "oops! You have entered a string." Break  

Comments