What is the syntax to accept only numbers and ignore any extra signs like "%" as user input in python? : I am using Python 3. I want the user to input the interest and I know that they will answer it with a % symbol following it.

My current syntax is

interest = input ('Enter the interest ')

(Does using raw_input help ? It didn't even work somehow)

