+ 1

Why is ternary operator isn't being executed? (code snippet)

I recently learned about ternary operator and I'm trying to execute it, but it doesn't seem to be working as expected. Please look at the code. Thank you! https://code.sololearn.com/cwe4tD35gQoJ/?ref=app

19th Jul 2021, 10:38 AM
Edwin
Edwin - avatar
1 Resposta
+ 2
NotAPythonNinja Thank you! I didn't see the zero exception.
19th Jul 2021, 11:00 AM
Edwin
Edwin - avatar