At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Join our Q&A platform to connect with experts dedicated to providing precise answers to your questions in different areas. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Write a program that asks the user how many freebees they would like to buy then prints out the total cost

Sagot :

Answer:

Explanation:

The following code is written in Python and does exactly what is requested by the question. It asks the user how many freebes they would like using an input method, saves that value to a variable called number_of_freebies. Then it multiplies that variable by the cost of each feebie (assuming its $2 each) to get the total cost. Finally, printing out the total cost.

number_of_freebies = input("how many freebies would you like to buy? ")

cost_of_freebie = 2

total_cost = number_of_freebies * cost_of_freebie

print(total_cost)

Visit us again for up-to-date and reliable answers. We're always ready to assist you with your informational needs. We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Your questions are important to us at Westonci.ca. Visit again for expert answers and reliable information.