what is the cause of this error??? Please help me I am Türk | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is the cause of this error??? Please help me I am Türk

https://code.sololearn.com/c3T7CuhL94Mt/?ref=app

15th Jan 2020, 2:25 PM
Dagbfatih
Dagbfatih - avatar
10 Answers
+ 2
You must correct indentation. Clear indentation from line8~11 and add indentation to codes under each if statement.
15th Jan 2020, 2:31 PM
Qasem
+ 2
Hit run Enter like this 1 2 0 And press submit
15th Jan 2020, 3:46 PM
Mihai Apostol
Mihai Apostol - avatar
+ 2
You're welcome.
15th Jan 2020, 4:11 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
Did you clear lines8~11? You haven't added indent on codes after each statement yet.
15th Jan 2020, 2:39 PM
Qasem
+ 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)
15th Jan 2020, 2:59 PM
Mihai Apostol
Mihai Apostol - avatar
+ 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.
15th Jan 2020, 3:17 PM
Mihai Apostol
Mihai Apostol - avatar
+ 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
15th Jan 2020, 3:22 PM
Dagbfatih
Dagbfatih - avatar
+ 1
Thank you very much! 👍👍
15th Jan 2020, 3:55 PM
Dagbfatih
Dagbfatih - avatar
0
I get the error "expected an indented block"
15th Jan 2020, 2:36 PM
Dagbfatih
Dagbfatih - avatar
0
I tried your advice but not working, why don't working? Mihai Apostol
15th Jan 2020, 3:06 PM
Dagbfatih
Dagbfatih - avatar