Question: Type in program tert. Type the following program in your editor and execute it. If your program does not work, check that you have copied

Type in program tert. Type the following program in your editor and execute it. If your program does not work, check that you have copied the code correctly. from math import pi h-5.0 # height b 2.0 # base r-1.5 # radius area parallelogram-hb print 'The area of the parallelogram is %,If, % area-parallelogram area_square b**2 print "The area of the square is %g, % area-square area circle -pier.2 print 'The area of the circle is %.If, % area-circle volume_cone 1.0/3*pi*r**2+h print 'The volume of the cone is %.3f, % volume-cone Name of program file: formulas_shapes.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
