+ 2

Why I am getting error?

Why sololearn is not able to interpret my input function in python. Here is the code https://code.sololearn.com/c7HWFp60cjrI/?ref=app please check it out.

14th Sep 2020, 2:05 AM
Aditya Raut
1 Answer
+ 1
First, in line 6 should be n%i not i%n, about the input in sololearn you should enter all your inputs at the start of the program separated by newline, since you are putting your code in infinite loop it will work to the last input you entered For example enter as input 1 2 3 4 5 6 7 It will work until seven and then give you an error, but it will work on computer so nothing wrong
14th Sep 2020, 3:08 AM
Ruba Kh
Ruba Kh - avatar