0

need help

Hello all, I need help with this code. I have to find the volume of a solid box having its length, width, and height. Volume=length, width, height. Here is what i have: myLen = input("Enter length\n") if myLen.isalpha () : print ("error") else : myWid = input("Enter width\n") if myWid.isalpha () : print ("error") else : myHgt = input("Enter height\n") if myHgt.isalpha () : print ('error') myVol = float(myLen) * float(myWid) * float(myHgt) print ('Vlolume is', myVol) This is the error: File "./Playground/file0.py", line 12 myVol = float(myLen) * float(myWid) * float(myHgt) ^ IndentationError: unindent does not match any outer indentation level

5th Feb 2020, 7:57 PM
alisha jones
alisha jones - avatar
2 Answers
+ 3
line 17 myVol= to be indented one space line 18print(...) ti be indented one soace
5th Feb 2020, 8:06 PM
Oma Falk
Oma Falk - avatar
+ 3
Please take a moment and study (not run) this in a concentrated fashion. After that you should be able to find the mistake. It will be no waste of time, because in Python you always need and use it. Indentation rules absolutely have to be down pat. https://code.sololearn.com/cT5BRIbkia21/?ref=app
5th Feb 2020, 8:14 PM
HonFu
HonFu - avatar