79614349

Date: 2025-05-09 14:41:25
Score: 1.5
Natty:
Report link

Aleksandr Dubinsky's answer points to a syntax that can be nested multiple times, when you have more than two choices. In the following I need to return three possible values:

i = 2

s = "start" if i==0 else "end" if i == 10 else None

print(s)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sandro