list tag

251 questions


1 answers
128 views
0
Questions about setting up Python Dictionary!

name = [Gayeon, Nayeon, Dayeon, ...., Hayeon]test1 = [20, 98, ..., 86]test2 = [50, 39, ...,39]and How do I set the name to key and test1, test2 to value in the function info??I want to bundle the valu...

2 years ago

1 answers
46 views
0
Overlap the list? How do you do it?

import collectionsimport operatorStudent = collections.namedtuple(Student, name stdid grade )e=int(input(Input loop count: ))list=[]for list in range (e): name1=input(Input name: ) stdid1 =int(input(I...

2 years ago

1 answers
46 views
0
Counting the number of items in the Python list

num=[1,2,2,3,3,4,4,4,4,4]How can I count the number of duplicate entries in this list?The count function should not be used and should be counted using a for repetitive statement.

2 years ago

1 answers
105 views
0
Java arraylist, inheritance, abstract class questions

Hello, I am an undergraduate studying coding.In the management class, ArrayList<Member> members = newArrayList<Member>();members.add (new member 1 (Hong Gil-dong, string, string, int);memb...


1 answers
88 views
0
Questions about Python List

To solve this problem #4 for i in range(len(table[0])) : print(table[0][i]) sum=0 for j in range(1,len(table)) : for k in range(1,len(table[j])) : sum=sum+table[j][k] print(total score,sum,means,sum/(...

2 years ago

1 answers
34 views
0
I would like to ask you a question about the dict output in the javascript list.

Hello, There is data as below. data = [{ 'a' : '1', 'b' : '2' , 'c' : '3' } , { 'd' : '4', 'e' : '5', 'f' : '6' }, { 'g' : '7', 'h' : '8', 'i' : '9' }]This 'a' : '1', 'b' : '2' , 'c' : '3''d' : '4', '...

2 years ago

1 answers
41 views
0
Python duplicate element finding function

def list_L(A,B): d=[] for i in range(A): C=B.count(A[i]) d.append(C) k=d.count(0) return True else: return FalseA=[int(x) for x in input(enter list1 elements:).split()]B=[int(x) for x in input(en...

2 years ago

1 answers
39 views
0
[Python] Putting the list together

Hello, everyoneI want to put the lists in one of the lists ([a], [b], [c], ... []) or [a,b,c,d,e,...]). What should I do?Most of the time I looked it up, A = [a], B = [b] were made and put together li...

2 years ago

1 answers
69 views
0
You are trying to print out a dictionary-specific value in the list

[{'name': 'name', 'age': 1, 'kind': 'n'}, {'name': 'value', 'age': value, 'kind': 'value'}, {'name': 'value', 'age': value, 'kind': 'value'}]The list is stored in this way, but I don't know how to set...

2 years ago

1 answers
81 views
0
I want to extract the keys from the two dictionaries and divide only the same key into one dictionary again.

// Use three dictionaries.Output A > {'ACG': [0], 'CGT': [1], 'GTT': [2], 'TTC': [3], 'TCC': [4], 'CCG': [5], 'CGG': [6, 10, 15]}Output B > {'AAT': [0], 'ATA': [1], 'TAT': [2], 'ATC': [3], 'TCC'...

2 years ago
« - 18 - »

© 2024 OneMinuteCode. All rights reserved.