(Shamelessly stolen from reddit)

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago*

I like the python way as it reads more naturally

a = 2 if isTrue else 9
  • source
  • parent