this post was submitted on 10 Oct 2023
637 points (98.0% liked)

Funny

6779 readers
396 users here now

General rules:

Exceptions may be made at the discretion of the mods.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] QuaternionsRock@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Got it:

if (a == 7 and b == 9):
    return 16
elif (a == 10 and b == 20):
    return 30
else:
    return 18