Jun-23-2022, 09:16 PM
Is this what you're looking for?
car_list = ['Ford', 'Volvo', 'BMW'] for car in car_list : print (f'The {car} has been sold.') print (f'There were {len (car_list)} cars sold.')
Output:The Ford has been sold.
The Volvo has been sold.
The BMW has been sold.
There were 3 cars sold.