Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for s2q1_swaramulagari

def calculate_book_cost(num_books, book_price): total_cost = num_books * book_price return total_cost

def main(): num_books = int(input("Enter the number of books you want to buy: ")) book_price = 2.75 total_cost = calculate_book_cost(num_books, book_price) print(f"The total cost for {num_books} books is ${total_cost:.2f}")

if name == "main": main()

Built With

Share this project:

Updates