0
[SOLVED]Can you assign something to an undefined list index?
For example : Q = input() #number of words is 4 List = Q.split(" ") List[4] = "Bob"
4 ответов
+ 2
Looks like you want to append? List.append("Bob")
+ 1
I would recommend you to test this yourself by writing code in sololearn playground... This will let you learn yourself... Try it yourself...
+ 1
Swift Ook... I think you got the answer now.. 😊😊
- 1
Steve Sajeev i tried and didnt work, im looking for an alternative solution