251 questions
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...
arr = [['a',' b', 'c'], ['b' ,'c' ,'d'], ['d', 'f', 'a']] brr = ['a',' b', 'c', 'b' ,'c' ,'d', 'd', 'f', 'a'] I'd like to change #listarr to brr. If you have any related methods or methods, please hel...
//hm.get(name): 1_01.wav//sound_list: [1_00.wav,1_01.wav]//Value is as above.Log.d(asdf, String.valueOf(sound_list.contains(hm.get(name)))); //-1Log.d(asdf, String.valueOf(sound_list.contains(1_01.wav...
a = [leo, kiki, eden]b = [eden, kiki]def s(a,b): zip = [] for a in b: zip.append(a) for i in range(len(zip)): a.remove(zip[i]) return aprint(s(a,b))I want to delete the list of a and print it out, b...
ex_list_1 = [{name:kim, age:35, height:185}, {name:Lee, age:15, height:165}] ex_list_2 = [{first_name:kim, nickname:kkk}]When there are two lists of this type, I would like to combine the dict() of ex...
The data that we're dealing with is like price data of stock prices, and here's the situation.How can I implement this data that is poured out in order without duplication?'''MAX_TABLE_LENTH = 200'''d...
my_list = ['\nblue\nyellow\nred, \ngreen\nblack, \npink']I want to convert \n part to @ character like the result screen below.my_list = ['@blue@yellow@red, @green@black, @pink']
Hello! I'm Python beginner.The value of n,s,t,k as a variable in an array such as a n : 20~28/s,t,k : 20~27 I calculated the number of all cases and printed it out with a txt file called Noutput using...
There is data as a list in the tuple.# The join() is not working properly in the replace the data divided by split() as a string part.If you change the elements into strings one by one, it works as yo...
t7=(3, 17, 34, 57)t8=(5, 39, 57)t9=(8, 16, 23, 45, 54, 58)t10=(2, 20, 30)t11=(3, 19, 34, 57)t12=(8, 16, 27, 45, 54, 58)t13=(3, 17, 34, 57)t14=(2, 28, 30)t15=(4, 17, 34, 57)t16=(8, 16, 23, 45, 52, 58)t...
« | - 7 - | » |
© 2024 OneMinuteCode. All rights reserved.