recursion function

Run Settings
LanguagePython
Language Version
Run Command
# recursion function def mysum(nums): if nums == []: return 0 else: return nums[0] + mysum(nums[1:]) return_value = mysum([1,2,3]) print(mysum([1,2,3,4])) print(return_value)
Editor Settings
Theme
Key bindings
Full width
Lines