1 Answer
New Answerx = bool(1) print(x) >>> True We often "convert" other data types to boolean to explicitly use them as predicates. However, they of course carry their "boolean potential" which is used when using boolean operators on them, without the necessity to change the type. while 8: print('Infinite loop') will produce an endless loop, because 8 (as any other number apart from 0) is True