Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

nal tibraries 11 det aina 12 13 14 15 16 17 18 19 20 2-(#Do not changeanythingbe

ID: 3750644 • Letter: N

Question

nal tibraries 11 det aina 12 13 14 15 16 17 18 19 20 2-(#Do not changeanythingbelow here ches and Consoles import math lengthefloat (input("enter the length of pyramid:n")) widthefloat (input("enter the width of pyramid: In") heigh float (input("enter the height of pyramid: In") volume Length * width * height /2 ifreceoreeenthhsath.sert (h) (heighlgh)) print("volume", volume) print("surface are-"surface area) 23 24 main() cubex pyramid x /Users/media/anaconda3/bin/python3 /Users/media/PycharmProjects/lab@3/pyranid.py enter the Length of pyramid enter the width of pyranid: enter the height of pyramid: Traceback (nost recent calt last) main) File "/Usersinedia/Pychar Projects/labea4pyranid.y ", Line 23, in modute ine 10, in sein nhon Console Terminal Run ST000 e failed Could not read from remote repository. (today 4:11 PMO

Explanation / Answer

Error 1: --------- in the formula of volume, you are using height as variable name, but in the line above you declared the variable as heigh. so, change heigh to height in this line (line number 15) change line 15 to => height=float(input("enter the height of pyramid: ")) Error 2: --------- change variable in line number 17 to surface_area (not Surface_area) If you make these 2 changes. Your errors will be fixed.