Untitled

mail@pastecode.io avatar
unknown
python
a month ago
146 B
1
Indexable
Never
cars = ['audi', 'bmw', 'subaru', 'toyota']

for car in cars:
    if car == 'bmw':
        print(car.upper())
    else:
        print(car.title())
Leave a Comment