rec2

Run Settings
LanguagePython
Language Version
Run Command
# breakdown into smaller problems (will lead to the last operation) # base condition is required to have finite fun calling # base condition is represtend by answer we have # let's make a sum of numbers till n # sum(n) = sum(n-1) + n # sum(2) = sum(1) + 2 # sum(1) = sum(0) + 1 def summer(n): if n == 1: return n return summer(n-1) + n print(summer(3)) # let's make something with recursive
Editor Settings
Theme
Key bindings
Full width
Lines