Error "expected an indented block" in my Phyton Calculator [closed]

-3

I have searched for hours to try to find an error in my codes and I did not get anything! Please help me!

[][] 2 [] 3

    
asked by anonymous 01.08.2017 / 16:45

1 answer

1

Dude through the image you can not see right, but you're not indenting the code correctly. For example when defining the function btnClick ():

...
def btnClick(numbers):
    global operator
    operator = operator + str(numbers)
    text_Input.set(operator)

cal = Tk()
...

I recommend consulting Python's recommendation on the indentation requirement. Here a tutorial link

    
01.08.2017 / 18:07