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

Funny

6510 readers
138 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
[–] [email protected] 4 points 11 months ago* (last edited 11 months ago)

Got it:

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