Create
Make a Meme
Make a GIF
Make a Chart
Make a Demotivational
Python be like
share
535 views
•
2 upvotes
•
Made by
Max-h12
5 days ago
in
fun
memes
expanding brain
Caption this Meme
Add Meme
Add Image
Post Comment
Show More Comments
Caption this Meme
Created with the Imgflip
Meme Generator
IMAGE DESCRIPTION:
NUMBERS = [1, 2, 3, 4] PRINT(SUM(NUMBERS)); NUMBERS = [1, 2, 3, 4] TOTAL = 0 FOR NUM IN NUMBERS: TOTAL += NUM PRINT(TOTAL); DEF RECURSIVE_SUM(LST): IF NOT LST: RETURN 0 RETURN LST[0] + RECURSIVE_SUM(LST[1:]) NUMBERS = [1, 2, 3, 4] PRINT(RECURSIVE_SUM(NUMBERS)); PRINT(10)