Hi I always have problems in writing python code invalid syntax one guy told me indentation but where can I put the indentation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hi I always have problems in writing python code invalid syntax one guy told me indentation but where can I put the indentation

Wow

18th Aug 2020, 7:30 PM
victor bamidele
victor bamidele - avatar
2 Answers
+ 1
Using tab in the keyboard instead of space if you use pc or laptop is the best indentation error solution .You have to config your idle or code writer program indentation setting .Then use tab after functions definition in their block of code or in conditions statement if/else or loops while/for after the two colons...
18th Aug 2020, 7:45 PM
HBhZ_C
HBhZ_C - avatar
+ 1
Ok
18th Aug 2020, 7:47 PM
victor bamidele
victor bamidele - avatar