Question: Data Programming l: Python Write a program that calculates how much Mary should pay for buying 3 KitKat each worth $2 and 2 Twix chocolate

Data Programming l: Python

  1. Write a program that calculates how much Mary should pay for buying 3 KitKat each worth $2 and 2 Twix chocolate each worth $4.

    Output:

    Mary should pay $14.

  2. Write a program that takes the circle radius and compute the circle area. Use the round function to have at most 2 decimal places in the output.

    Output:

    The area of a circle with 4 inches radius is 50.27

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!