251 questions
package arrayList;import java.util.ArrayList;public class Student { String name; ArrayList<Book> bookList; public Student(String name) { this.name = name; bookList = new ArrayList<Book>(...
en = ['a', 'b', 'c']ko = [Ga, Na, Da]df = pd.DataFrame (data = [[ko, en]], columns = ['Hangul', 'English'])dfI want to put a list in one column, but [] brackets go in together. Is there a way to get r...
L = [2,4,5,8,9,10,3]length = len(L) for i in range(length): if L[i] < 5 : del L[i]print(L)I'm trying to extract a value less than 5 from the list, but I don't know why there's an errorTraceback (...
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...
I am studying single linked list with c++ now. I want to insert values in ascending order, but I keep getting errors. Putting 1 and 0 works well, but putting 0 and 1 does not work. Maybe if (p == NULL...
I have two lists, but I want to remove the value in one list and replace it with this string ____. The code I tried is as follows. list_s = [a,b,c,d,e]list_t = [a,b]list_s2 = []cnt =0for value in list...
If there's a list called [1, 2, 3]If each 1, 2, 3, 10, 20, 30, 40, 50, 60, 70, 80, and 90, there's a total of 9 elements in it, so1: 10,20,302: 40,50,603: 70, 80.90. Like this.When you write a for sta...
If [Ganada, Ganada, Ganada, Ganada, Ganada, abc, abc, abc, Mabasa, Mabasa]When you have a one-dimensional list, such asWith a two-dimensional list [Ganada, Ganada, Ganada, Ganada, Ganada, [abc, abc], ...
Use the list range to line up (ex. 150, 155, 160, 165....)If you enter the standard weight, it floats like the standard weightI keep on increasing my height by 5 and my weight also increases by 5I'm w...
list=['a',5',['e',5],['c',3],['d',3],['e',1]] How do you tie the same numbers together? For example, ['a','b',5],['c','d',3],['b',1]] in the above case.Even if I try for and if, it doesn't come out th...
« | - 17 - | » |
© 2024 OneMinuteCode. All rights reserved.