×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Lubo Stefanov
Added: Jun 3, 2017 9:25 AM
Views: 4
Tags: no tags
  1. ef how_much_i_love_you(nb_petals):
  2.     lst = ["I love you","a little","a lot","passionately","madly","not at all"]
  3.     print (nb_petals)
  4.     return (lst[nb_petals % (len(lst) -1)])