9 lines
307 B
Python
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]}") |