#condition_if_true if condition else condition_if_else

is_friend = True
can_message = "message allowed" if is_friend else "not allowed"
#will print "message allowed when is_friend true and not allowed when false"
print(can_message)