0
here what happens guys, what is the mean f assert
Assert sum_list([1,2,3])==6
2 Antworten
+ 2
1+2+3=6
do the sum of numbers
+ 2
It basically means "Make sure that the sum of these numbers is 6. If not, stop the program here.". It's a way to prevent crashes after this line. Instead of crashing, the program will stop at the assert.