Elegant array modification solution
IntuitionAt first I thought about deleting the element of the array once it passed through, but then the values of the array will not match the indexes.Therefor
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
At first I thought about deleting the element of the array once it passed through, but then the values of the array will not match the indexes.

Therefore, my approach consists in changing the value to None, and if the None value is reached, stop the loop and clean the output.
I think the way of preparing the output with `[x + 1 for x in rest if x is not None]` is quite elegant, but a bit too specific.
In the same line I also increase the number by one because the indexes start at 0 but the numbers of the positions of the people start at 1.

# Code
```python []
class Solution(object):
    def circularGameLosers(self, n, k):
        """
        :type n: int
        :type k: int
        :rtype: List[int]
        """
        rest = range(n)
        index = 0
        rest[0] = None
        turn = 1
        new_output = []
        while True:
            index = index + turn * k
            index %= n
            if rest[index] != None:
                rest[index] = None
                turn += 1
                continue
            break

        return [x + 1 for x in rest if x is not None]

```
['Array', 'Python']