Beginner - do not understand why this would not print

So on I am currently completing a challenge and I wrote this:
def win_percentage(wins, losses):

total_number_of_games = wins + losses

ratio_of_winning = wins/total_number_of_games

percentage= ratio_of_winning*100

print = str(percentage) + ("%")

print(win_percentage(5, 5))

should print 50

print(win_percentage(10, 0))

The correct solution uses return rather than print, and it seems to print it out, however, all I get is ‘none, none’. I would be really thankful if someone could help me out here, and let me know where is the gap in my understanding.

It’s a little hard to see what’s going on because of the way your code has been formatted in your post -there’s a codebyte option, paste it in there and it should be easier to read.

So, what’s going on with the;
print(win_percentage(5,5))
is you’re saying “what I want you to print is the result of calling the function - win_percentage - with the parameters 5 and 5.”
return is how the function sends back the result. As you’ve not got a return statement it’ll reflect that nothing has been sent back, i.e. print ‘none’.

on the 2nd to last line
print =
is a keyword and should not have an = sign assignment after it.
probably a syntax error