I Java it's possible to represent IF-THEN statement in the following form:
a = (x==10) ? true : false;
that is equivalent to
if (x==10)
  a=true;
else
  a=false;
Is it possible to do the same thing in Python?
I Java it's possible to represent IF-THEN statement in the following form:
a = (x==10) ? true : false;
that is equivalent to
if (x==10)
  a=true;
else
  a=false;
Is it possible to do the same thing in Python?
 
    
    a = True if x == 10 else False
or simply
a = x == 10
