Question: in python from SquarePyramid import SquarePyramid def main() : # UNITS # height: meters # baselength: meters # SOLUTION height =0.125 baselength =0.25 squarePyramid 1=



from SquarePyramid import SquarePyramid def main() : \# UNITS \# height: meters \# baselength: meters \# SOLUTION height =0.125 baselength =0.25 squarePyramid 1= SquarePyramid () squarePyramid2 = SquarePyramid () \# Modify the Height of Square Pyramid 1 based on the variable Height \# Display "ValueError in Main Method: squarePyramid1" if a ValueError occurs squarePyramid1 = squarePyramid1. setHeight(height ) \# Modify the Base Length of Square Pyramid 2 based on the variable Base Length \# Display "ValueError in Main Method: squarePyramid2" if a ValueError occurs squarePyramid2 = squarePyramid2. baseLength(baseLength) fietgh I Hastencul Triceback isost recent calt iasti: Fite "Hainigy", Line 71 . in cosdules main(t) Filn "Mainagy , tine 2T1, in main squarefyrance? - iguarepyratide. oatecengting basetsogthi Attribute Erropy 'seiarepyranid' object has no attribate 'foselength Tracoback (oost recenti call lait): inte "Maine.py", Tine 7 . in vapdute. Aainf) File "Kain py", line 20 , in main Valuetrrari: Sint Heighis isstance Mh thad-Invalid height Trakeback (aost reint catl lastir matin Vatuetrar in Main Wethod squaripyrasie? File ratiley*, tinn 2\%, in main Atcribubefroes 'Smarefyranid object has ne atfritate basetength' Traceback (nast recent call last\} File "rain.9y", Lioe 31 , in erodules main(1) rite. Thain.98", Hine 23 , in sain sqaarepyraaidz squarepyraside, baselmgithi basitength) Attributefrcor 'Sogarefyrandd pbject has on attribute "baselength' Iraceback (sast recent call last) rile "kaifipy?. Fine 31. in cododer maing File "rain-pr", tine 20, in main Yatuefror in kein Wethod in sharviryatalas Aguarepyranid = pquarepyramidi setheightiheight relse ValueErroritset iseight Indance Method Irvalid henght") Traraback ikeis foont call lastll file "Tain.py". Iine 31. in endute: Iraceback (anit recent catt that) Hile "Mali-py", line 31 , in sodver Haini) He Main.er, bine 2 , is kin Iracebsck (mast reraticalt lastio File "Mainify", Wine in, ie cosoles Gile "Kin 2y, tine 20 , in sain. - tame Valuefroritset ieidit insianen Method tnpalid height" viliefrmari Set fleipht Instance Method Invatid height File thain py', Hire 31, in cesdater Iracatack (esst rycent call lasti: file "Kain, per". lite I1, is coodutes File 'Hain,pyt, tine A. in asia
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
