Good Code: guess = int(input("Guess a number between 1 and 50: ")) #Line#4
Bad Code: guess = (int(input("\nGuess a number between 1 and 50: ")) #Line #9,12
Parenthesis are not aligned correctly on Bad code.
Either add ')' at end of lines 12,9 or use code from line 4