python-crash-course/Chapter_03/3-3_myOwnList.py
2025-01-20 16:39:02 -05:00

9 lines
307 B
Python

# Exercise 3-3 Your Own List
# Learning Objective: Create and print out a list using f-strings.
cars = ['Honda', 'BMW', 'Audi', 'Toyota']
print(f"I would like to own a {cars[0]}")
print(f"I would like to own a {cars[1]}")
print(f"I would like to own a {cars[2]}")
print(f"I would like to own a {cars[3]}")