+ 5

[SOLVED]Help me about that list thing![Python]

So what I need to do is: for x in range(lenVar1): y=var1[x] #No error list1[x]=y #Error BTW var1 is a string, list1 is a list

5th Mar 2017, 1:41 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
10 Réponses
+ 4
Ok I will try to post an example of it
5th Mar 2017, 2:25 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 4
Thank you!
5th Mar 2017, 2:27 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 4
No thank you I found the solution
5th Mar 2017, 2:29 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 3
I did define but it gives IndexError
5th Mar 2017, 2:20 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 3
I cant cuz its long
5th Mar 2017, 2:21 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 3
No
5th Mar 2017, 2:22 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 3
I defined it: list1=[]
5th Mar 2017, 2:23 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 3
I cant do that it will cause a time limit exceed error thats why i only give error giving part
5th Mar 2017, 2:24 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar