Discussions Q&R
{ 1, 2, 3, 4 {1, 5, 6, 7}, 5, 6, 3, 4} Challenge sequence 3: 2, 3, 5, 11, 23, 29, 41, 53, 83, 89, 113, 131...... Code it...All languages welcome Is it possible to store 2, (5,12)both numbers are together, 3, (5,12), 3, (5,12) in an array in java?, if possible, how? mylist = [0, 1, 2, 3, 4, 5, 6, 7] for i in mylist: mylist.remove(i) print(myList)
output is
[1, 3, 5, 7]
Why not removing all a = [1,1,2,3,5,8] for a[1] in a:
pass
print(a)
result :[1, 8, 2, 3, 5, 8]
want to know how index-1 is replaced as 8.