How to Attach a list to a character of another list in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to Attach a list to a character of another list in python

For school competition revision

15th Oct 2020, 8:19 AM
Science Buster
Science Buster - avatar
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]
10th Nov 2020, 12:20 PM
Lothar
Lothar - avatar
+ 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!
15th Oct 2020, 11:00 AM
Lothar
Lothar - avatar
+ 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
15th Oct 2020, 8:45 AM
Shadoff
Shadoff - avatar
+ 1
Like S = [5,6] S[0] = [4,7]
10th Nov 2020, 6:08 AM
Science Buster
Science Buster - avatar