Pourquoi ma fonction imprime-t-elle aucune
# You must be printing a function, that has print, statement. Use return instead of print.
def movie_review(rating):
if rating <= 5:
return “Avoid at all costs!”
elif rating > 5 and rating < 9:
return “This one was fun.”
else:
return “Outstanding!”
print(movie_review(10))
# If you have print in the place of return and in line 9; you are exicuting a print action, you get none.
Sankar Mohan