Question: I shutdown a VS2010 project yesterday and everything was working well. I opened it up today and one of the .cpp files has green formatting on the parenthesis, semi-colons, and colons (see attached photo). Auto-complete is also not working. 

I've deleted the .sdf file for the project, as that usually fixes the auto-complete issue. This did not work. Additionally, the broken .cpp file is still identified by VS2010 as a C/C++ file. Google doesn't seem to turn up any folks with similar problems.

Has anyone encountered this issue? How can I fix it? 

![enter image description here](https://i.stack.imgur.com/8whxe.png)

Answer: 
Just aggregate each result:

```
p = permutations(range(10), 2)
result = [str(x[0]) + str(x[1]) for x in p]

```
As John Clements and I pointed out in comments, its possible to make the strings or numbers you want without doing a permutation.

Two-permutations of digits 0 to 9 simply represent integers from 1 to 98 that don't have any repeated digits. Conveniently, all 2-digit numbers with repeated digits are multiples of 11, so you can easily make a list comprehension or generator expression that skips over the ones you don't want:

```
nums = [i for i in range(1, 99) if i % 11]

```

If you want your result to be a list of two-character strings, you use the `format` function with a format string that says to to pad one-digit numbers with a zero:

```
strings = [format(i, '02') for i in range(1, 99) if i % 11]

```

Unfortunately, it's a bit harder to extend this technique to longer numbers, since just skipping multiples of 11 won't cut it any more. What the best approach would be will probably depend on what you're actually doing with the values you get.