Question: Short Python questions. Problem 3A-C. Thanks :) Define functions to perform the following tasks, obeying these requirements: Assume that the math library has been imported

Short Python questions. Problem 3A-C. Thanks :)  Short Python questions. Problem 3A-C. Thanks :) Define functions to perform
the following tasks, obeying these requirements: Assume that the math library has

Define functions to perform the following tasks, obeying these requirements: Assume that the math library has been imported for you. Do NOT ask the user for input unless the specification explicitly requires it. Do NOT print anything unless the specification explicitly requires it. Problem 3A Consider this code print ("The area of circle with radius 5 is math.pi 5 2) print("The area of circle with radius 8 is math.pi 8 2) print ("The area of circle with radius 2 is math. pi 2 2) Eliminate the redundancy in this code by defining an area function that takes 1 param- eter: radius of circle and prints out the area of circle This function can be then called three times to produce exactly the same output as above: area(5) area(8) area(2) Problem 3B Define a function named num evens that: Takes 1 parameter: a list of integers Returns the number of even integers in that list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!