Imgflip Logo Icon

Python be like

Python be like | 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) | image tagged in memes,expanding brain | made w/ Imgflip meme maker
535 views 2 upvotes Made by Max-h12 5 days ago in fun
Expanding Brain memeCaption this Meme
Expanding Brain memeCaption 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)