Home /
Expert Answers /
Computer Science /
please-help-me-with-my-programming-question-complete-the-following-program-by-filling-in-the-missin-pa812
(Solved): Please help me with my programming question! Complete the following program by filling in the missin ...
Please help me with my programming question!
Complete the following program by filling in the missing code: try: height = float(input('Enter height of cylinder: ' )) radius = float(input('Enter radius of cylinder: ')) print(f′ Cylinder volume ={ math.PI*adius*radius*height }′) Note: a ValueError exception occurs if the user enters a value less than or equal to zero. A TypeError exception occurs if the user enters an incorrect type. Sample program run\#1: Enter height of cylinder: a Error: enter a valid digit! Sample program run\#2: Enter height of cylinder: 10.5 Enter radius of cylinder: -5 Error: enter radius value that is >0