Quick actions

cmd+k|ctrl+k

Navigation

Languages

ternary operator

Snippet info

Language

Python

Visibility

public

Author

pheker

Created

2017-10-11T05:25:32Z

Updated

2017-10-11T05:25:32Z

print("Hello World!")

print(1 if True else 0)
print([0,1][False])
print((True and [1] or [0])[0])
# print(1==1?1:0) not support
INFO