Why print(1)...? I'm confused please explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why print(1)...? I'm confused please explain

print(0) assert "h"! ="w" # condition is True it will print(1) assert False # condition is not true skip print(2) assert True # condition is ture why its not printing print(3)

31st May 2020, 1:48 PM
Balavan Chauhan
Balavan Chauhan - avatar
1 Answer
0
assert True print(3) works fine and is printing 3
31st May 2020, 2:37 PM
Abhay
Abhay - avatar