append tag

10 questions


1 answers
416 views
0
2D array append

A1 = [[6,-8,11], [7,10,12],[12,14,7],[-5, 9, 4],[5, 7, 8],[3, 13, -2],[11, 8, 9],[3, 5, 4]]I'd like to add the sum of the first and third values after this[[6, -8, 11, 17],[7, 10, 12, 19],[12, 14, 7, ...

1 years ago

1 answers
116 views
0
Questions related to python list.sort().

Group3 = list()Group3.append('A')Group3.append('Da')Group3.append('la')Group3.append('I')Group3.append('c')Group3.append('a')Group3.append('b')Group3.append('羅')Group3.append('家')Group3.append('多')Gro...


1 answers
111 views
0
Python array

Make a=[] in Python. If you put a value in a.append, the value goes into the list of a.Is there a command to create an empty matrix just like a=[]?If you have, I would appreciate it if you could let m...

1 years ago

1 answers
102 views
0
How do I write from the back of the file?

I don't want to overwrite the file but I want to add it to the back, but I can't find a wayWho wants to teach me?

1 years ago

1 answers
74 views
0
Python, I got a value from the database, so I have a question when I use it.

I put the value I received in the database into the list as append, and when I write the value of each kernel, I filter the list[] twice in the array as shown in 1, remove the tuple(), and use it afte...

1 years ago

1 answers
112 views
0
The difference between append and extend in Python

What is the difference between append() and extend() in the Python list method?

1 years ago

1 answers
124 views
0
Output speed difference after the for statement result immediately vs for statement result list append (SW Expert question 3750)

Hi, how are you?There was a problem I didn't know while solving SW Expert Academy question 3750 I couldn't find a solution even if I googled, so I asked this question.The problem is that the unauthori...

1 years ago

1 answers
93 views
0
I'm asking for help because I have difficulty understanding the problem (list.append)

scores =[]sum_scores = 0for i in range(5): value = int (input (Enter your grade) scores.append(value) sum_scores = scoresscoresAvg = sum(sum_scores) / 5print(sum(scores))print(scoreAvg)I don't know wh...

1 years ago

1 answers
115 views
0
I want to list the values using append by rotating the function in Python, but I want to number the values in order, is there a way like that?

I want to list the values using append by rotating the function in Python, but I want to number the values in order, is there a way like that?Using the for superposition sentence, we set 20 n and 20 i...

1 years ago

1 answers
64 views
0
I want to search all the subfolder files and make them into files, but the print and append values are different.

I'm going to create a project where I search all the subfolder files and make them into filesThe value comes out well if you print it, but when I added it to the list by append and returned the list, ...

1 years ago

© 2024 OneMinuteCode. All rights reserved.