New course! Every coder should learn Generative AI!
Try a free lesson0
What is the output of the following and explain it why?
print('hi' if True else 'bye')
1 Answer
+ 2
Further to Granger 's comment, try the following variant:
print('hi' if False else 'bye')