Hoşgeldin Misafir

"IndentationError: expected an indented block" hatası nedir?

gtech

26 Ara 2017
604 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
sayı_1= int(input("Sayı Gir"))
ıslem= input("islem gir:")
sayı_2= int(input("Sayı 2'yi gir"))
toplama = sayı_1 + sayı_2
cıkarma = sayı_1 - sayı_2
carpma = sayı_1 * sayı_2
bolme = sayı_1 / sayı_2
if islem == "+":
print(toplama)
if islem == "-":
print(cıkarma)
if islem == "*":
print(carpma)
if islem == "/":
print(bolme)
else:
print("hatalı işlem")
print(sayı_1, sayı_2)

HATA KODU:

File "C:\Users\Fatih\PycharmProjects\ilkproje\pythonProject\ilk dosya.py", line 9
print(toplama)
^...

Read more