laflame
Aryan Shahane, Sugamay Gakhar, Jishnu Ganisetti
def calculate_book_cost(num_books): book_price = 2.75 total_cost = num_books * book_price return total_cost
def main(): num_books = int(input("Enter the number of books you want to buy: ")) total_cost = calculate_book_cost(num_books) print("The total cost for", num_books, "books would be $%.2f" % total_cost)
if name == "main": main()
Log in or sign up for Devpost to join the conversation.