How do i get the following code to work? Basically i'm trying to take list (array) values and save them as an int, for example i want element [0] to save it's raw_input value into a int.
Here the code snippet:
a = 0
myList=[1,2,3,4,5,6]
a = raw_input()
a = mylist[0]
print (a)
At the moment it gives me errors. Any clue ? only started learning python yesterday.