fork download
  1. # your code goes here
  2.  
  3. def sum_of_happiness():
  4. friend_attendence_list = 5
  5. happiness = 1
  6. for friend in range(1, friend_attendence_list):
  7. happiness *= friend
  8. return happiness
  9.  
  10. if __name__ == "__main__":
  11. soumyajit_and_arpita = sum_of_happiness()
  12. print(soumyajit_and_arpita)
Success #stdin #stdout 0.02s 9124KB
stdin
Standard input is empty
stdout
24