I have a function to ask the user to input an integer and I am trying to put in a try function that will replace ValueError with "Input must be an integer." but I keep getting a syntax error for my except! I am using Python 3.5.2
def get_int ():
s = int(input("Give me an integer: "))
return(s)
while s is float:
try:
s = int(input("Give me an integer: "))
except(ValueError) as "Input must be an integer."
print("Input must be an integer.")
except ValueError as:
^
SyntaxError: invalid syntax
except ValueError:without the "as string" part