I'm currently new in python and i'm trying to split digits into list. Now i want to show all that digits one by one in single row after splitting.
Suppose, I give input to my program like this -> 123456
I want to achieve my output like this
1
2
3
4
5
6
So, i tried this codes:
myList = input("\nEnter: ")
myElements = [int(i) for i in str(myList)]
print(myElements)
So, i'm able to get output like this:
[1, 2, 3, 4, 5, 6]
QUESTION
But i want to get that digits in every single new row, like this:
1
2
3
4
5
6
I tried to use print(myElements[0])
but problem is, I have given a choice to insert, So how it is possible? Please help me..
HELP WOULD BE APPRECIATED!~