-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathfor_loops.py
More file actions
88 lines (50 loc) · 927 Bytes
/
for_loops.py
File metadata and controls
88 lines (50 loc) · 927 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Review questions chapter 11
"""for i in range(10):
print("Hi!")
for i in range (5):
print("Hello")
print("There")
for i in range (5):
print("Hello")
print("There")
# General Kenobi
for i in range (10):
print(i)
for i in range (1,11):
print(i)
for i in range (10):
print(i+1)
for i in range (2, 12, 2):
print(i)
for i in range (5):
print((i+1)*2)
for i in range (10, 0, -1):
print(i)
for i in range(3):
print("a")
for j in range(3):
print("b")
a = 0
for i in range(10):
a = a + 1
for j in range(10):
a = a + 1
print(a)
total = 0
for i in range(1, 101):
total = total + i
print(total)
i=0
while i < 10:
print(i)
i=i+1
i = 1
while i <= 2**32:
print(i)
i *= 2"""
keep_going="yes"
while keep_going="yes"
a = input("would you like to try again?")
if a = "no"
keep_going=a
else