-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.5.1 Looping Unit Test
More file actions
93 lines (49 loc) · 759 Bytes
/
7.5.1 Looping Unit Test
File metadata and controls
93 lines (49 loc) · 759 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
85
86
87
88
89
90
91
92
93
Question 1:
for i in range(6):
print(i)
Question 2:
for i in range(3, 10, 2):
print(i)
Question 3:
12
Question 4:
for i in range(0, 10):
Question 5:
for i in range(5, 0, 1):
Question 6:
It’s still a nice day
It’s still a nice day
It’s still a nice day
It’s still a nice day
Question 7:
while num < 12 and num > 3:
# do something with num
Question 8:
secret_num = 10
while secret_num == 10:
print(secret_num)
Question 9:
When you don’t know how many times something will need to repeat
Question 10:
0
1
0
1
Question 11:
9
Question 12:
-150
Question 13:
0
1
2
4
5
6
7
8
9
Question 14:
The program will break out of the loop as soon as the user enters the magic_number
Question 15:
On line 9