0

Why wright code like that

The code in this excercise is: words = ["Python", "fun"] index = 1 words.insert(index, "is") print(words) but why not this?: words = ["Python", "fun"] words.insert(1, "is") print(words)

21st Dec 2016, 5:01 PM
Peter Versteeg
Peter Versteeg - avatar
1 Odpowiedź
+ 4
To make it more complicated? (to show you that you can use vars in args of method?)
21st Dec 2016, 5:03 PM
Valen.H. ~
Valen.H. ~ - avatar