Write a python program that will take an input n from the user and then take n number of circle's radius input from the user. After that your program will calculate the area and circumference of the...


Solv3 in python #3


Write a python program that will take an input n from the user and then<br>take n number of circle's radius input from the user. After that your<br>program will calculate the area and circumference of the circle and store<br>it in a dictionary where a key will be the circle number and value will be<br>a list containing area first and then circumference of that circle. Finally<br>print the dictionary.<br>Area of circle = pi *r*r<br>Circumference of circle = 2* pi *r<br>%3D<br>Sample input 1:<br>3<br>2<br>3<br>4<br>Sample Output 1:<br>{Circle 1': [12.566370614359172, 12.566370614359172], 'Circle 2

Extracted text: Write a python program that will take an input n from the user and then take n number of circle's radius input from the user. After that your program will calculate the area and circumference of the circle and store it in a dictionary where a key will be the circle number and value will be a list containing area first and then circumference of that circle. Finally print the dictionary. Area of circle = pi *r*r Circumference of circle = 2* pi *r %3D Sample input 1: 3 2 3 4 Sample Output 1: {Circle 1': [12.566370614359172, 12.566370614359172], 'Circle 2": [28.274333882308138, 18.84955592153876], 'Circle 3": [50.26548245743669, 25.132741228718345]}

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here