loops tag

55 questions


1 answers
122 views
0
I'd like to apply the command repeatedly to files that exist sequentially in Python/folder. Help me.

Hello, I'm Python's beginner.I've been doing this and that by myself, but I don't know the answer, so I'm leaving a question.The code is as follows.import globlist_filepath = glob.glob('/content/drive...

1 years ago

1 answers
168 views
0
What do you do with HashMap when you turn the repeat door?

You want to check the data of an object in HashMap How do I turn the repeat statement on HashMap?

1 years ago

1 answers
71 views
0
Accessing indexes in Python for statements

items = [8, 23, 45, 12, 78]without using index variables as shown belowIs there a way to print the index?index = 0for item in items: print(index, item) index += 1

1 years ago

1 answers
111 views
0
How to break multiple repetitive statements at the same time

From the source code below,Is there a way to get out of the overlapped repeat door at once using break?int main(){ for(int i=0; i<A; i++){ //... for (int j=0 ; j<B; j++) { //... for (int k=0...


1 answers
101 views
0
To remove elements with all null values from an ArrayList or String array

I'd like to remove all elements that have null values from the ArrayList or String array in JavaFor me,for (Tourist t : tourists) { if (t != null) { t.setId(idForm); } }I tried turning around the ...


1 answers
151 views
0
Does Ruby have a do-while statement?

I'm creating a program that receives a person's name and stores it in an array until an empty string is entered.When checking for empty strings, you just want to write while statements, so you need to...

1 years ago

1 answers
154 views
0
Does the speed vary depending on which of the overlapping for statements is repeated first?

for(i=0 ; i<100; i++) for(j=0; j<1000; j++) printf(a);And for(i=0 ; i<1000; i++) for(j=0; j<100; j++) printf(a);Both loops 100,000 timesI heard one of the two spins fasterPlease explain ...

1 years ago


1 answers
140 views
0
Python voting program

I've even gotten candidates input. I'm trying to pick the person who got the most votes, but it's not working I received the item and put it on list1 as append I can't do it next timelist1=[]j=0member...

1 years ago

2 answers
124 views
0
- 1 - »

© 2024 OneMinuteCode. All rights reserved.