What is the error ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
11th Aug 2019, 3:24 PM
Nada El Annasi
Nada El Annasi - avatar
1 Answer
+ 2
Well assert gives the AssertionError if the condition is NOT met. Therefore, what you should be doing is: assert (x>=0), "Negative!"
11th Aug 2019, 3:33 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar