I am learning to write python and I am writing some scripts according to what a book says. The code is as follows
cars = 100 space_in_a_car = 4 drivers = 30 passengers = 90 cars_not_driven = cars - drivers cars_driven = drivers carpool_capacity = cars_driven * space_in_a_car average_passengers_per_car = passengers / cars_driven print "There are % cars available." % cars print "There are only % drivers available." % drivers print "There will be % empty cars today." % cars_not_driven print "We can transport % people today" % carpool_capacity <--Line 24 print "We have % to carpool today." % passengers print "We need to put about % in each car." % average_passengers_per_car It says that on line 24, which is the line that says that we can transport % people today, has an error. The Terminal says that there is an unsupported format character "p", but I cannot seem to find the problem. All of the lines follow the exact same format so when I look over the code I cannot see the problem. I need to know what the problem is.