1 member
num_books = int(input("Enter the number of books you want to buy: ")) book_price = 2.75 total_cost = num_books * book_price print("The total cost of", num_books, "books is $", total_cost)
Solo
num_books = int(input("Enter the number of books you want to buy: ")) book_price = 2.75 total_cost = num_books * book_price print("The total cost of", num_books, "books is $", total_cost)
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.