0
How to Attach a list to a character of another list in python
For school competition revision
4 Answers
+ 6
Science Buster , here some samples:
S = [5,6]
S[0] = [4,7]
print(S) # result is [[4, 7], 6]
S = [5,6]
S[0:0] = [4,7]
print(S) # result is [4, 7, 5, 6]
S = [5,6]
S[0:1] = [4,7]
print(S) # result is [4, 7, 6]
+ 4
Science Buster , your question is not quite clear, please give us a sample what your input is, and what you expect to get as output. Thanks!
+ 1
What do you mean?
[1,2,3] + ['a','b','c']?
What do you mean by "character of a list"?
is character here refers to:
long, shiny, beautiful, amazing, sorted, unordered?
Can't figure it out
+ 1
Like
S = [5,6]
S[0] = [4,7]