55 questions
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
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)...
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]...
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...
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;...
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...
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...
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...
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...
« | - 2 - | » |
© 2024 OneMinuteCode. All rights reserved.