+ 1
what is the cause of this error??? Please help me I am TĂŒrk
10 Answers
+ 2
You must correct indentation. Clear indentation from line8~11 and add indentation to codes under each if statement.
+ 2
Hit run
Enter like this
1
2
0
And press submit
+ 2
You're welcome.
+ 1
Did you clear lines8~11?
You haven't added indent on codes after each statement yet.
+ 1
Mind the type casting in the first two inputs.
Do the same for the other if like I did for +. Mind the " "
sayi1 = int(input("sayi 1: "))
print("\n")
sayi2 = int(input("sayi 2: "))
print("\n")
islem = input("islem girin 0 1 2 3: ")
print("\n")
if islem == "0":
top = sayi1 + sayi2
print(top)
+ 1
if islem == "0":
top = sayi1 + sayi2
print(top)
Make the other if like this.
Use " " for 0, 1, 2, 3
Indent the two lines under the if line.
+ 1
Program is worked thanks but I don't know how to enter 3 values. for example, if I want to do 1 + 2, what do I write in the Run section? i never wrote 1 2 0
+ 1
Thank you very much! đđ
0
I get the error "expected an indented block"
0
I tried your advice but not working, why don't working? Mihai Apostol