+ 1

clarification on assert and If statement exception

Assert works similar to the case if raise Exception in used in If statement ?? Am I right ? Same thing can be achieved by checking condition in IF statement and raising exception . is there any difference between them ?

13th Apr 2018, 12:15 PM
Sangeeta Mehra
Sangeeta Mehra - avatar
2 Antworten
0
Assert is slicker than catching by if
13th Apr 2018, 4:19 PM
Loeschzwerg
0
Thank you.. !!
16th Apr 2018, 4:55 AM
Sangeeta Mehra
Sangeeta Mehra - avatar