100 questions
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...
I'm going to turn the for statement to Cf1, Cf2, Cf3, and Cf4 below! It's blocked from the beginning. Help me!Cf1 = pd.read_csv(1Y.csv)Cf1 = Cf1.dropna()Cf1.isna().sum()xy1 = np.array(Cf1, dtype=np.fl...
import java.util.ArrayList;import java.util.Scanner;public class Anagram {public static void ana(ArrayList<String> ar, ArrayList<String> sub){ if(ar.size()>1) { for(int i = 0; i < a...
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...
In Python, you want to change the element that meets the condition to a different value.temp = ['apple', 'banana', 'coke']for i in temp: if i == 'coke': i = 'grape'print(temp)I thought it would be ap...
data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14]for i in data: if data.count(i) == 1: data.remove(i)print(data)output: [2,4,6,8,10,12,14]Why does an odd number work when I tried to erase the only value?
I am a student studying Python.I want to change the for statement below to Python in C, but I don't know how to change it.for (int i = 3; (i*i) <= number; i += 2) { if (number % i == 0) return fals...
import numpy as npimport cv2 as cvimg = cv.imread('dp.png')img_h = img.shape[0]img_w = img.shape[1]img_bpp = img.shape[2]print(img_h, img_w, img_bpp)blue = (255,0,0)white = (255,255,255)a = 450b = 0c ...
Hello, masters Here's the question! numbers = [ (1,2),(10,0) ] for a,b in numbers: if b == 0: print(It cannot be divided by 0.) continue print({} divided by {} is {}.format(a,b,a/b))Problem: 'The ...
int * buff = new int[10];for(auto x : buff?? ){ x = 0;}I want to initialize all the buffs that were assigned dynamically to zero, buff?Please tell me how to write down.I tried buff[], buff, etc., but ...
« | - 4 - | » |
© 2024 OneMinuteCode. All rights reserved.