Mar-27-2020, 09:48 AM
(Mar-24-2020, 10:30 PM)pythonuser1 Wrote: I want to optimize it. I have these two lines print(i,r) and return(r ). Is there a way I can get rid of one of these two lines and yet have the correct output giving only the multiple of a number ?
# -*- coding: utf-8 -*- # Les nombre multiples de n compris entre 1 et 60 def multiple(n): return int(60/n) print(multiple(15))
Output:4