SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
x = a > b and 10 or 11
This is a sample of execution:
>>> a,b=5,7 >>> x = a > b and 10 or 11 >>> print x 11