Q. What is the output of if None: print(‘True’) else: print(‘False’)?
Solution:
None is False in a boolean context, so ‘False’ is printed.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
None is False in a boolean context, so ‘False’ is printed.
Strengthen Your Practice with our comprehensive question bank.