Why won't this work?
Hello, I am attempting to write my very first solo code after a few lessons on python. I am being taught in python 2, but writing in 3 so that may be the issue. However, I am having trouble figuring it out, whatever it is. The console states my error to be Invalid Syntax on line 6, So if anyone could answer what's wrong with my return value that would be very helpful. Thank you very much. This is the code: #This code will show why Brian smelt of elderberries! #P.S. Brian is a friend of mine and I plan to show him my first solo code. userinp = input() def brian_elderberries(userinp: return userinp + 1 print("Enter a number between 1 and 10") def test(userinp): if userinp =< 10 and userinp >= 1: print "Brian added 1 to your number, just like always" elif userinp > 9: print ("That number is too high! Please enter a number between 1 and 10") elif userinp < 1: print("That number is too small! Please enter a number between 1 and 10") else: print("That's not a number! You and Brian both smell of elderberries!")