PROGRAMMING:List generation and loop left shift (higher education society, python programming foundation and application exercise 4-6)
Read in an integer n from the keyboard and complete the following tasks:
1. Use fast list generation syntax to generate list [1, 2,..., n-1, n];
2. Use the for loop to move the list loop one position to the left;
3. Output the list after the loop moves left.
###Input format:
n
###Output format:
[2, 3, ... , n, 1]
###Input example:
```in
five
```
###Output example:
```out
[2, 3, 4, 5, 1]
```
answer:If there is no answer, please comment
1. Use fast list generation syntax to generate list [1, 2,..., n-1, n];
2. Use the for loop to move the list loop one position to the left;
3. Output the list after the loop moves left.
###Input format:
n
###Output format:
[2, 3, ... , n, 1]
###Input example:
```in
five
```
###Output example:
```out
[2, 3, 4, 5, 1]
```
answer:If there is no answer, please comment