Exercise: Greeting From a Boolean
Write a one-line conditional expression that sets greeting to
'Welcome' when has_ticket is True, and to 'Sorry, no entry' otherwise. The boolean variable is already truthy on its own, so no comparison is needed.Premium
Python
Setting up Python environment... Output