0
How to make use of Boolean
https://code.sololearn.com/c1SH4vDdwh1a/#py Can I use boolean to print true or false in the above code ??
2 Respostas
+ 2
Yes, but you will need to convert them to boolean. Like if x == 'yes': x = True
0
If you write something like...
print(x=='yes')
... you'll also directly get the output as Boolean True (or False).