Curso_Intensivo_de_PYTHON/chapter_05/cars.py

8 lines
146 B
Python
Raw Permalink Normal View History

2023-06-02 17:22:53 +02:00
cars = ['audi', 'bmw', 'subaru', 'toyota']
for car in cars:
if car == 'bmw':
print(car.upper())
else:
print(car.title())