list tag

251 questions


1 answers
335 views
0
Ask about an error that occurred while printing the python list as *

Hello. I have a question because the output of the Python list is confusing in many ways.If the elements in the list are integers, * is often used to print out the brackets, but this time I tried to a...

2 years ago

1 answers
148 views
0
To create an ArrayList from an array

I will Element[] array = {new Element(1), new Element(2), new Element(3)};I initialized this arrangement ArrayList<Element> arraylist = ???;How do I put it in here?

2 years ago

1 answers
94 views
0
What's the way to initialize a line in ArrayList?

ArrayList<String> places = new ArrayList<String>(); places.add(Buenos Aires); places.add(Córdoba); places.add(La Plata);For example, there is a source like this, and I want to reduce the i...


1 answers
95 views
0
Python slice notationPlease tell me

I heard that it's very comfortable to use notation, but it's hard to learn.I'm not sure yet, but can you give me an example?

2 years ago

1 answers
95 views
0
Find the index of a specific item in the Python list

[hello,python,world,!]Item inHow can I find the index (2) of world?

2 years ago

1 answers
178 views
0
Find the last element in the Python list

How can I find the last element in the Python list?

2 years ago

1 answers
188 views
0
How do I erase an empty string from the list?

How do I erase all the empty strings in the list elements?I want to make better chords than the ones I wrotePlease tell me more Python-like chordswhile '' in str_list: str_list.remove('')

2 years ago

1 answers
94 views
0
Which is faster, Array or List?

You need to have thousands of strings in memory that are accessible sequentially. Should I save the string to Array? Should I save it to the list? Unlike List, Array stores all data continuously in a ...


1 answers
189 views
0
How do I get the last value of ArrayList?

I don't know what the last value of ArrayList is. How do I get the last value of ArrayList?

2 years ago

1 answers
144 views
0
How do I erase the elements in the list?

I got an error when I tried to erase the missing element (Source Code 1) When erasing an element that does not exist, we created a code (source code 2) that does not cause an error.Is there an easier ...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.