If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Trace if conditionals

Problem

The following program simulates a road trip.
fuel = 6.5
print("Starting trip.")

if fuel < 7.0:
    fuel = fuel + 5.5
    print("Refueled at stop 1.")

if fuel < 8.0:
    fuel = fuel + 4.5
    print("Refueled at stop 2.")
What is the output of the program?
Choose 1 answer: