+ 3
What is the difference between assert and break keywords?
2 Respuestas
+ 2
This is what i found for your question:
ASSERT: Assert statements are a convenient way to insert debugging assertions into a program.
BREAK: It terminates the current loop and resumes execution at the next statement.
+ 2
one more difference i found is that
assert keyword can be written outside the loop but it is not so with the break keyword.
break keyword if written outside the loop gives error.