+ 3
[Solved] Why is the output of the following code 'True'?
x = True is True or not False y = not x if x == True: x = not not not y is x elif x == False: x = y is False print(x)
2 ответов
+ 2
x = (True is True) or not False
x = True
y = not x = not True = False
x == True
-> x = not not not y is x
-> x = not not not False is True
-> x = not not not False
-> x = True
+ 3
CarrieForle Got it... Thanks!