Whats wrong with this approach..plzzz help


#1



Replace this line with your code.

Whats wrong in this code.pdf (264.0 KB)


#2

Make sure ALL your blocks are indented properly. Everything in each block needs to be indented at the same level. For example:

def function(x):
  for x in range(0,100):
    if(x=1):
      print("x is 1")
    elif(x==2):
      print("x is 2")
    else:
      print("x is neither 1 nor 2")

Each level is indented more.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.