Aurora Wednesday Saturday Python Homework 20.05.02.
17439
post-template-default,single,single-post,postid-17439,single-format-standard,bridge-core-3.0.6,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-theme-ver-29.3,qode-theme-bridge,disabled_footer_bottom,qode_header_in_grid,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Wednesday Saturday Python Homework 20.05.02.

Aurora Wednesday Saturday Python Homework 20.05.02.

Question 1:

Make a function that will allow you to print any name, address, street, city, state or province, zip or postal code, and country in the world. (Hint: It needs seven arguments. You can pass them as individual arguments or as a list.)


Question 2:

Write a function to calculate the total value of some change—quarters, dimes, nickels, and pennies. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this when it runs:

Sample input:

quarters: 3
dimes: 6
nickels: 7

Sample output:

total is $1.70


Class review:

No Comments

Sorry, the comment form is closed at this time.