+ 1
what is the answere
print(0) assert "h" != "w" print (1) assert False print(2) assert True print(3)
2 Réponses
+ 2
//Sorry for including external link ,but you need information about assert usages
https://stackoverflow.com/questions/5142418/what-is-the-use-of-assert-in-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 1
the output is
0
1
AssertionError
Because first you print 0, then you check if h doesnt equal w, it doesnt, so prints 1
Then you assert False which is false, so an AssertionError is raised