0
Why wherever I try to run the code below i doesnt let me in python but it let me in this app
x = int(input()) for i in range(1, x,2): if i % 3 == 0 and i % 5 == 0: print("SoloLearn") elif i% 3 == 0: print("Solo") elif i % 5 == 0: print("Learn") else: print(i)
5 odpowiedzi
+ 8
Juan Mejia It looks like you didn't input any integer or string. So, try giving a proper input which should be an integer like "15"
+ 5
Juan Mejia , the error message indicates clearly that you have input an empty string, which means that you you have pressed the return key, but nothing else.
+ 2
it looks like you're inputting a string instead of an integer. try only inputting numbers. no quotes.
+ 1
your python version may not be up to date. could you send the error you get?
0
x = int(input())
ValueError: invalid literal for int() with base 10: ''