Untitled

 avatar
unknown
python
a year ago
146 B
4
Indexable
cars = ['audi', 'bmw', 'subaru', 'toyota']

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