We can use `eval(input())` to allow the user to enter a list in python3
Here is an example:

```
  L = eval(input('Enter a list: '))
  print('The first element is ', L[0])
  Enter a list: [5,7,9]
  The first element is 5

```

But `eval()` not working in python2.7

I want to input data as a list `[5,7,9]`
and want to take each value as `L[0]` is `5`, `L[1]` is `7`, etc. using python 2.7.