-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
52 lines (32 loc) · 880 Bytes
/
test.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
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
def test_function():
my_list = ['cat', 'dog', 'fish']
active = True
start_action(0)
print('<h3>started</h3>')
while active:
if 'cat' in my_list:
first_func(1)
print('<h4>cat</h4>')
my_list.remove('cat')
continue
if 'fish' in my_list:
second_func(2)
print('<h4>fish</h4>')
my_list.remove('fish')
continue
if 'horse' in my_list:
fourth_func(4)
print('horse')
my_list.remove('<h4>horse</h4>')
continue
active = False
print("<h3>completed test</h3>")
def first_func(n):
return 'complete'
def second_func(n):
return 'complete'
def fourth_func(n):
return 'complete'
def start_action(n):
return 'complete'
print(test_function)