+ 1
I need help please. My code(or the IDE) has issues with âcollectingâ input. How can I fix this please?
total = 0 i=0 while i<5: age=int(input(âenter your ageâ)) if age<3: continue total+=100 i+=1 print(total)
7 Respostas
+ 4
You are using wrong quotes ââ for string. Use double " " Or single quotes ' ' for string literals...
And if it is about code coach task then don't put any argument to input() function..
hope it helps.....
+ 1
Jayakrishnađźđł Ah, I didn't even know there were different quotations but it makes sense because in the link I gave, it talked about not using US keyboards can lead to syntax errors.
+ 1
total = 0
i=0
while i<5:
i+=1 # change need on this
age=int(input()) #
if age<3:
continue
total+=100
print(total)
# corrected code, find your mistake yourself now.
# hope it helps.
0
Have a look at this from SO:
https://stackoverflow.com/questions/14844687/invalid-character-in-identifier
0
Jayakrishnađźđł thanks but i also tried not using the argument but it still didnât work . They keep telling me something about EOF error.
0
The error is from the line age=int(input())
I also tried
age=input()
I even tried a different code but there still was an issue with the input.
Googled the error type and they said its typical of online IDEsđ