PoonLab / courses

Creative Commons Attribution Share Alike 4.0 International
2 stars 15 forks source link

Add explanation on ternary operators to Style doc #9

Open ArtPoon opened 6 years ago

ArtPoon commented 6 years ago

For example:

a = <expression 1> if <condition> else <expression 2>

instead of:

if <condition>:
    a = <expression 1>
else:
    a = <expression 2>