loops tag

55 questions


2 answers
118 views
0
Python Deduplication

It's a lottery extraction. You have to extract it 6 times without duplicating itPlease tell me how to sort by the most extracted numbers from the six printed lists...Please let me know

1 years ago

2 answers
145 views
0
Python-Repeat List 2 with each argument in List 1 without duplication

How do I simplify the code below?Newlist =[ ]A_list = [a, b, c, d, e, f]page_list = [1, 4, 5]''''''''''''''''''for 'A' in A_list:names1 = Class Method Function (type='A', page=1)Newlist.extend(names1)...

1 years ago

1 answers
117 views
0
Python Excel row Repeat

Hello. I'd like to list the number of ranges in ExcelFor example, if 1.5 is entered, you want to implement it in a format that increases by 0.5 from -1.5 to 1.5. But I don't know what to do with the r...

1 years ago

1 answers
98 views
0
There's a problem with the repeat statement

import randomlst = list()for i in range (0,10,1) : lst.append(random.randint(0,100))print(lst)maxidx = 0for i in range(0,10,1): if lst[maxidx]<lst[i] : maxidx=itmp =lst[maxidx]lst[maxidx] = lst[9]...

1 years ago

1 answers
149 views
0
Hashmap Values Using Repeat Statements

Code was written to give the key a value using a repeat statement.import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;public class Solution { public static v...

1 years ago

1 answers
103 views
0
Java, I want to know why this is happening.

import java.util.Scanner;public class Main { public static void main(String[] arg) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); sc.close(); int A = a*2-1; int K = 1; int B = a-1;...

1 years ago

1 answers
53 views
0
Is there a way to use _getch() in the repetition sentence in C language so that it repeats even when there is no input?

It's supposed to be 1 every second from 0 and if you type r, it starts from 0 againI was going to end the program by typing q.I made it as below, but it works only when I keep pressing other buttons o...

1 years ago

2 answers
58 views
0
Is there a way to know the true number in Python Repeat for?

There's a repeat forIf you get the number of numbers that are less than 10 divided by 3, you make the repeat statement like this.answer = 0for i in range(10): if i%3 == 0: answer += 1return answerBut...

1 years ago

1 answers
118 views
0
Python repeat statement and tuple question. Masters, please help me

I'm taking a course called the return value of a function using a tuple. I'm posting a question because I don't understand something.names = [Cheolsoo, Younghee, Youngsoo]for i in range(len(names)): n...

1 years ago

1 answers
70 views
0
I have a question about the 4-20 repeat statement

Thank you for your answer before However, I did not learn the repetition of for of from the 4-20 repetitionAs I read the link to the lecture, I got a questionlet arr = [3, 5, 7];arr.foo = hello;for (l...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.