list tag

251 questions


1 answers
82 views
0
I have a question regarding the Python list indexing.

stack = [3, 4, 5, 8, 0]print('stack : [')for x in stack: print(stack[x], end='') if x >= 4: print(']') break;As above, I tried to check if the value is output after declaring and assigning a list...

2 years ago

1 answers
116 views
0
I want to use the Android Arraylist to put the data in, enter the Edittext window, and show it as a list, but I have no idea.

Add button on main screen (A) On the next screen (B) Enter Email (Edit Text)Enter name (edit text) Confirmation (Button) In this screen configuration, press the Email, Name, and OK button in the Edit ...

2 years ago

1 answers
108 views
0
Enter the list of Python back when numbers are not the case law.

If you receive non-numeric characters to create the list, you will be prompted again, but the code will return to the beginning. How can I ask you to re-enter the part where the error occurred?while T...

2 years ago

1 answers
66 views
0
Python module csv question!!! I'd like to ask you a data processing question about the values in the list

I am using Python module csv to work on the csv fileAmong the values I loaded the csv file,For example, list = ['0', '0', '0'] There's a lot of data in the list.There's a value called ' in the third o...

2 years ago

1 answers
45 views
0
Python List Aliasing

This code changes the listWhy doesn't this code change the list? I don't know the difference between the two

2 years ago

1 answers
41 views
0
Clear specific index values from Python

myList = [4,7,2,342,9,3]when it comes tomyList.remove(3)Is there a remove function that can be used in this way?list.remove(3)After doing that, the 3rd value was erased at the end, not the 3rd index.

2 years ago

1 answers
80 views
0
Why is it string.join(list), not list.join(string)?

I think when we said we were going to make Hello-world,I think it's better to use it like Source Code 1Why can't source code 1 be executed and should I use source code 2 together?Is there a reason?my_...

2 years ago

2 answers
67 views
0
Python, how do I know if it's applicable to a particular function?

I'm a beginner who's about to start an algorithm in Baekjun Online Jersey.While solving a simple I/O problem, I was looking at a short code that other people had unlockedI got to know that it's a map....

2 years ago

1 answers
94 views
0
I'm asking you how to change all the characters in the list ('1', '2',...) to numbers without a for statement

['1', '2', '3'] -> [1, 2, 3]How do I turn a number stored in text into a number?I think there is a way to do it without using the for statement, but I don't know what to do.


1 answers
80 views
0
Can I put data in ArrayList in the java array?

First of all, assuming that it's a structure, it' name, its age, The name of the structure is st. ArrayList [] list= new ArrayList[5];st s = new st(); s.Name (name);s.Age (11);list[0] = new ArrayList(...

2 years ago
« - 15 - »

© 2024 OneMinuteCode. All rights reserved.