@TristinKeenan/

Four Loops

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
print("Loop 1")

for i in [0,1,2,3,4,5]:
  print(i)

print("\nLoop 2 \n")

for i in range(4):
  print(i)

print("\nLoop 3\n")

print(list(range(4)))

print(list(range(1,5)))

print(list(range(0,19,2)))

print(list(range(10,0,-1)))


print("\nLoop 4\n")

for name in ["Joe","Amy","Brad","Paris",]:
  print(name)