15th Aug 2021, 11:13 AM
Aakash Mitra
Aakash Mitra - avatar
2 Respuestas
+ 3
You have to convert x to int before the if clause. Otherwise "x%2" produces an error. You're trying to divide a string.
15th Aug 2021, 11:15 AM
Simon Sauter
Simon Sauter - avatar
0
Thank for your help
15th Aug 2021, 12:48 PM
Aakash Mitra
Aakash Mitra - avatar