一個簡單的例子
cars =['adui','bwm','subaru','toyouta']for car in cars:
if car='bwm'
print(car.upper())
else:
print(car.title())
條件測試
判斷True or False
in or not in
for car in cars:
if car='bwm'
print(car.upper())
else:
print(car.title())
判斷True or False
in or not in