0

Trying to assign true and false with a message

how can I add a message to true or false.

13th Feb 2019, 10:12 PM
Hussain Raza
Hussain Raza - avatar
2 Respuestas
+ 1
Conditional statement: print message if True: print("True message") else: print("False message")
14th Feb 2019, 12:05 AM
Steven M
Steven M - avatar
+ 1
for b in (True, False): print(('false', 'true')[b]) # true, false
14th Feb 2019, 6:17 AM
Anna
Anna - avatar