@videlais/

Learning Python: Part 6: 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
cond = 1

while cond < 10:
  print(cond)
  cond = cond + 1

listDemo = ["Hello", "Welcome", "Greeting"]

for item in listDemo:
  print(item)

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