How do i make a recursive function, to find the mean from a nested list of integers?

前端 未结 0 1504
予麋鹿
予麋鹿 2021-01-03 18:16

Requirements: May not use For loops, While loops, sum() and count()

example:

mean([1 ,[2 ,3 ,[4]]])

out: 2.5



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题