+ 2

Error : Illegal Character \u0000. Line number: 31, 33,35

https://code.sololearn.com/cXdqSF1cIdrR/?ref=app

8th Oct 2021, 1:48 AM
Milon
Milon - avatar
8 Answers
+ 3
Milon Yes you have written code somewhere then copy from there and posted here. As my experience I am sure you copied then did some changes. This character add in code you copy from another place. Now see here this is working https://code.sololearn.com/c80D3DiDJPD9/?ref=app
8th Oct 2021, 2:38 AM
A͢J
A͢J - avatar
+ 2
Milon This happens when you copy code from one place to another place specially from browser. So rewrite your code.
8th Oct 2021, 2:17 AM
A͢J
A͢J - avatar
+ 2
Lines 31, 33, and 35 have a nonprintable character before the first double quote ("). Position your cursor just before the first " and then press delete. Observe that the open parenthesis to the left of it stays in place. The unwanted character is deleted. Repeat on the remaining two lines.
8th Oct 2021, 2:42 AM
Brian
Brian - avatar
8th Oct 2021, 2:49 AM
Milon
Milon - avatar
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Sorry bro. I didn't copy this code.
8th Oct 2021, 2:19 AM
Milon
Milon - avatar
+ 1
Milon I didn't say you copied from someone else code, I said you copied from one place to another place.
8th Oct 2021, 2:23 AM
A͢J
A͢J - avatar
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Oh! Bro, The first time I wrote the code, it showed the same problem. So posted here.
8th Oct 2021, 2:27 AM
Milon
Milon - avatar