list tag

251 questions


1 answers
45 views
0
How to put from 1 to the substituted number in the list[] value?

제가 순서 정하기 비슷한것을 만드려고 합니다.If the user enters a value of 5, Numbers from 1 to 5 come out randomly and check your rank. I'd like to write a code to delete the rank from the list [ ].list[ ]Leave the list...

2 years ago

1 answers
115 views
0
Can't we use structures to implement link lists? (no pointer)

Is it impossible to connect the structure inside the structure?

2 years ago

1 answers
71 views
0
Find the intersection of two lists

If the list is a one-dimensional array, this is how you get it.b1 = [1,2,3,4,5,9,11,15]b2 = [4,5,6,7,8]b3 = [val for val in b1 if val in b2]#ordef intersect(a, b): return list(set(a) & set(b))prin...

2 years ago

1 answers
143 views
0
Can we do the order of ArrayList randomly?

There are two ArrayLists, filelist and imgList. If each of these is H1.txt, it's related to e1.jpg.When I change the order of the imgList automatically, I want to change the order according to the fil...


1 answers
87 views
0
Java Class Object List (ArrayList)

I'm trying to create a banking system.Using ArrayList and class systems, he made it possible for several people to open their accountsThe error keeps coming up at the part where I check the card numbe...


1 answers
41 views
0
Why do you use array when there is a list on Python?

When I learned Python, I learned, Python uses a list instead of an array.But I saw on the Internet that when you make an array, it says that you can make an array in the array module other than the li...

2 years ago

1 answers
80 views
0
Is there a way to remove the list when the elements in the Python list are dictionaries?

For example, test_list_1 = [{key_1:val_1},{key_2:val_2},{key_3:val_3},{key_4:val_4}]test_list_2 = [{key_3:val_3},{key_4:val_4},{key_5:val_5},{key_6:val_6}]# Desired Value# # test_list_2 - test_list_1 ...

2 years ago

1 answers
36 views
0
To specify indexes in order when the list has duplicate values

a= [Seoul, Seoul, Gyeonggi, Gyeonggi, Gyeonggi, Incheon, Incheon]b=[Game, game, game]How do we find the number of indexes in a that are the data in b?

2 years ago

1 answers
37 views
0
When do you use the list and tuple?

When do you use the list and tuple in Python?Some methods return lists and some methods return tuples, and I wonder by what criteria you made them.Hello %s you are %s years old %x #Tuple only availabl...

2 years ago

1 answers
67 views
0
You are about to sort the list in alphabetical order

You want to sort the list that stores the string in alphabetically.Where are the relevant methods?

« - 13 - »

© 2024 OneMinuteCode. All rights reserved.