I would like to get help on this code to make it valid... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

I would like to get help on this code to make it valid...

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

31st May 2017, 6:04 PM
Iwan
Iwan - avatar
5 Answers
+ 10
If possible please suggest as it must be changed
31st May 2017, 6:26 PM
Iwan
Iwan - avatar
+ 10
Nope not the colon
31st May 2017, 6:27 PM
Iwan
Iwan - avatar
+ 7
According to error messages, you seems have invalid invisible characters instead spaces at line 27 begin ( deleting spaces and retyping them fix it ) and next ( fixing line 27, show similar error at line 29: you should fix all one by one :P )
1st Jun 2017, 4:47 AM
visph
visph - avatar
+ 4
On line 27 there is a error, should that colon not be replace by a comma? But you missed the declaration of the variable?
31st May 2017, 6:23 PM
🇺🇸 Anatoli🇧🇪🇪🇺 ,
🇺🇸 Anatoli🇧🇪🇪🇺 , - avatar
+ 3
@Visph: You are probably right on the spot. I already suggested that he should check the spaces for intentations this causes a lot of problems if you switch from usjng spaces and or Tabs.
1st Jun 2017, 8:37 AM
🇺🇸 Anatoli🇧🇪🇪🇺 ,
🇺🇸 Anatoli🇧🇪🇪🇺 , - avatar