First, the culprit to this error msg is
userInput = (input("Enter a choice "))
while userInput >5 or userInput <=0:
input in Python returns a string data type, and you are trying to compare string against int. No no. Try to convert it first:
int(userInput) > 5 or int(userInput) <=0:
Second, you are going to get an undefined error for the option variable in here:
userInput()
while option != 5:
option = userInput()
I think your option is meant to take the value from userInput(). So fix it.
Third, this while loop above will not work as you want it. Why? It is the same mistake as the first. Either you convert the option to int or make the 5 into a string.