this post was submitted on 10 Oct 2023
643 points (98.1% liked)

Funny

6793 readers
984 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 4 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