Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

Python Question of the Day Jan. 21, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    What code should be added to lines 7 and 9 in the following program to print 10.5 to the console?

    # Earnings from Lemonade Stand
    
    price = 1.50
    
    def total_sales(cups_sold):
        total = cups_sold * price
        # What code goes here?
    
    # What code goes here?
    print(earnings)
    Python