This will add a string to the round_two array if it does not exist. It will then return the index of the string within the Array
(str_to_add, round_two)
| 39 | |
| 40 | |
| 41 | def add_to_round_two(str_to_add, round_two): |
| 42 | """ |
| 43 | This will add a string to the round_two array if it does not exist. |
| 44 | It will then return the index of the string within the Array |
| 45 | """ |
| 46 | if str_to_add.lower() not in round_two: |
| 47 | round_two.append(str_to_add.lower()) |
| 48 | return round_two.index(str_to_add.lower()) |
| 49 | |
| 50 | |
| 51 | def is_tracked_zone(cname, zones): |