Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer please Use Sypder to develop your code for the following problems and drop your python (...py) code into the DB T2P2 in the Tests

Answer please


image

Use Sypder to develop your code for the following problems and drop your python (...py) code into the DB T2P2 in the Tests folder. This test and Drop Box will be active till Midnight of 11/13/2022 [15] 1. Use the radius of 4 inch and pi value of 3.14159 (r=4.0 and pi=3.14159) to calculate the area and circumference of a circle. You are asked: i. ii. iii. To develop a main function as driver which will have the call function of the circle (call function to circle will pass the radius and pi value to the function that calculate area and circumference), To develop a function (you can name it as circle) that takes r and pi, calculates area and circumference, and returns these two values to the main function, To display the area and circumference inside the main function to the user. [10] Start with the following list of numbers. numbers = [10, 3, 7, 1, 9, 4, 2, 8, 5, 6] 2. You can use filter, map and sum to calculate the total (sum) of the squared values of even integers in that list. [Even integers in the list of "numbers" are selected, squared, and added]. You can also use list comprehensions, or list processing operations with functions to accomplish the objective. Your output may look like: Numbers=[10, 3, 7, 1, 9, 4, 2, 8, 5, 6] Sum of squared even numbers in the list: 220

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis And Decision Making

Authors: Christian Albright, Wayne Winston, Christopher Zappe

4th Edition

538476125, 978-0538476126

More Books

Students also viewed these Programming questions

Question

How much is $102 after a decrease of 2%?

Answered: 1 week ago

Question

How much is $150 after an increase of 150%?

Answered: 1 week ago