For Loops
For loops are used for repetitive actions in code, where you want to execute something for a certain amount of things or times.
names = ["Mario", "Luigi", "Daisy", "Yoshi"]
for i in range(len(names)):
print(f"Hello, {names[i]}")
You can also iterate over the list:
names = ["Mario", "Luigi", "Daisy", "Yoshi"]
for name in names:
print(f"Hello, {name}")