How do i resolve the "unexpected indent" error in python?

0 votes
Does Indentation cause any problems in the logic of the program as well?
Jul 3 in Python by Waseem
• 4,480 points
17 views

1 answer to this question.

0 votes
Look for the whitespaces which are not necessary in the code, since python follows indentation. Even a single white space can cause unexpected errors.
answered Aug 2 by Mohammad
• 3,060 points

Related Questions In Python

0 votes
1 answer

In NumPy how do I get the maximum of subsets? Python

You can use np.maximum.reduceat: >>> _, idx = np.unique(g, ...READ MORE

answered Nov 9, 2018 in Python by Nymeria
• 3,520 points
64 views
0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 216 views
+4 votes
6 answers
0 votes
1 answer

how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

answered Mar 12 in Python by Mohammad
• 3,060 points
38 views
0 votes
1 answer

how do i clear the screen in python?

import os os.system('cls') or os.system('clear') READ MORE

answered Mar 19 in Python by Mohammad
• 3,060 points
56 views