I am trying to shorten my code by putting input directly into a list. This is my code:
n = input('Enter: ')
lista = [n[i] for i in range(len(n))]
I am trying to put this in one line. I tried couple of variations but none of them worked. Is this even possible to do in python ?
inputin the code as python 2.7 AND 3.x