Sep-29-2018, 11:17 AM
I am writing this peace of code in Pycharm but it gives me a invalid syntax error can anyone tell me what i'am doing wrong
Error:
one = int(raw_input("Enter a number between 1 to 10 : ")) two = int(raw_input("Enter a number between 1 to 10 : ")) if (one >= 0) and (one <= 10): print ("You secret number is : ",one * two) else: print ("incorect second value please enter between 1 to 10") else: print ("incorrect first value")
Error:
C:\Users\HON\PycharmProjects\input\venv\Scripts\python.exe C:/Users/HOK/PycharmProjects/input/as.py File "C:/Users/HON/PycharmProjects/input/as.py", line 5 else: ^ SyntaxError: invalid syntax Process finished with exit code 1