cshw/py/Loops/task4.py

6 lines
No EOL
180 B
Python

# Define the list of names
names = ["Bob", "David", "Alice", "Charlie", "Olivia"]
# Loop through each name in the list
for name in names:
print(name) # Print the current name