Skip to main content

Unexpected Indent Error in Python

Here is an example of Unexpected Indent Error in Python 

Problem:


x=5


  for i in range(0,x):

      for j in range(0,i):

        print("*")

Correct Way:

x=5


for i in range(0,x):

for j in range(0,i):

print("*")

    

Comments

Popular posts from this blog

unix commands