Add py/Loops/task4.py
This commit is contained in:
parent
be237eb38c
commit
ea7fa38429
1 changed files with 6 additions and 0 deletions
6
py/Loops/task4.py
Normal file
6
py/Loops/task4.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
# 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
|
Loading…
Add table
Reference in a new issue