Welcome to Westonci.ca, the place where your questions find answers from a community of knowledgeable experts. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our 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)

We appreciate your visit. Hopefully, the answers you found were beneficial. Don't hesitate to come back for more information. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We're glad you visited Westonci.ca. Return anytime for updated answers from our knowledgeable team.