Quick actions

cmd+k|ctrl+k

Navigation

Languages

Ternary Operator

Snippet info

Language

Python

Visibility

public

Author

harshdeepsaini2757

Created

2025-11-12T17:10:36.858567Z

Updated

2025-11-12T17:10:36.858567Z

#Ternary Operator

is_friend = True
can_message = 'ya' if is_friend else 'not'

print(can_message)














INFO