fork download
  1. list = [1, 2, 3, 4, 5]
  2. list2 = [5, 4, 7, 9, 2, 4, 7, 4]
  3. def yee(example):
  4. total = sum(example)
  5. average = total / len(example)
  6. print(average)
  7.  
  8. yee(list)
  9. yee(list2)
Success #stdin #stdout 0.04s 63140KB
stdin
Standard input is empty
stdout
3
5