def win_percentage():
"""This functon asks the user for two ints . This will take two ints.
First amount is win, second is losses. It will calc the % of wins."""
print("This will take two ints. First amount of wins and then the losses.\nThen will return the % of same.")
wins = float(input("wins total "))
losses = float(input("losses total "))
total_per_cent_of_wins = wins / (wins+losses)*100
return(total_per_cent_of_wins)
#challenge if total_per_cent_of_wins then Y
#challenge make sure user only enters int! throw message accordingly
win_percentage()

I’m having an error as well, but I do have a : at the end of the function definition.
However, when I run the code, I get a NameError stating that ‘wins’ is not defined.

We are giving the function literal arguments which parameters are local, only. The variables are defined in the signature line so we cannot access them outside of the function.