(numbers)
| 90 | |
| 91 | print("Example 6") |
| 92 | def normalize_copy(numbers): |
| 93 | numbers_copy = list(numbers) # Copy the iterator |
| 94 | total = sum(numbers_copy) |
| 95 | result = [] |
| 96 | for value in numbers_copy: |
| 97 | percent = 100 * value / total |
| 98 | result.append(percent) |
| 99 | return result |
| 100 | |
| 101 | |
| 102 | print("Example 7") |