What means unexpected indent ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What means unexpected indent ?

Please Help

11th Aug 2023, 12:38 PM
KingLarypto
KingLarypto - avatar
4 Answers
+ 4
- Indent is a specific number of spaces or tabs denoting that a line of code is part of a particular code block. - IndentationErrors help to make code more readable and ensure the Python interpreter correctly understands your code. - If you added an additional space where not needed in your code, you will encounter an error as: ā€œIndentationError: unexpected indentā€ _____________________________________________ To solve an indentation error: 1)Check for unnecessary white spaces or tabs 2)Ā Indentation for a specific block remains the same throughout the code.
11th Aug 2023, 12:47 PM
Shree
Shree - avatar
+ 4
Next time whenever you ask a question first use search bar in Q&A discussion forum to avoid repeated questions. Happy Learning šŸ¤— https://www.sololearn.com/Discuss/190994/?ref=app https://www.sololearn.com/Discuss/1769943/?ref=app
11th Aug 2023, 12:58 PM
Shree
Shree - avatar
+ 1
Thanks bro
11th Aug 2023, 12:57 PM
KingLarypto
KingLarypto - avatar
+ 1
Okay šŸ‘Œ
11th Aug 2023, 1:00 PM
KingLarypto
KingLarypto - avatar