SyntaxFix
Write A Post
Hire A Developer
Questions
Only for using as a value:
x = 3 if a==2 else 0
or
return 3 if a==2 else 0