for tag

100 questions


1 answers
90 views
0
I want to print out multiple lines of text from Python Tkinter module.

import random as rddef lottery_number(): num = int(number.get()) for i in range(num): lotto_list = list(range(1,46)) #from 1 to 45 rd.shuffle(lotto_list) #shuffle lotto_list1 = lotto_list[:6] lot...

2 years ago

2 answers
105 views
0
Draw a graph of gravity according to altitude with matplotlib

N = 80z = np.zeros((N,2))for h in range(0,80,1): z[h,0] = h #constants mass_earth = 5.9722*10**(24) #[kg] radius_earth = 6371*10**(3) #[m] universal_gravitational_const = 6.674*10**(-11) #[m^3/kg^-1*s...

2 years ago

2 answers
112 views
0
Error when specifying variable for index of empty double array using for loop - JavaScript

testOne = [['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],['ex','ex','ex'],];xx = [];realCal = ['a','b','c']; for (let i = 0; i < testOne.length; i++) { xx[i] = realCal; xx...


1 answers
71 views
0
[for moon i] I asked because I was bored

I understand why variables such as Python, c, and java are declared with a, b, n, m, x, and y. Since a or b is the first in abcde order, you can think of it as n for number and m for number and m for ...

for
2 years ago

1 answers
70 views
0
Related to Python for Moon

import mathimport numpy as npimport matplotlib.pyplot as pltdef Nutzlast(time): t1 = time #[s] _________________________ Required Values and Formulas _________________________ nutzlast = ((m_b2 - (0.0...

2 years ago

1 answers
48 views
0
Using multiple arrays, multiple for statements, first and second, respectively. To get the last value

import numpy as np T_list = [] Temp_k = np.linspace(298, 398, 10) #print (Temp_k) current = np.linspace(0, 1.4, 5) ppH2O = np.linspace(-2, -1, 5) H2_pressure = [] H2O_pp = ppH2O for i in (Temp_k): pr...

2 years ago

1 answers
88 views
0
Double for statement

Please tell me how to write a code that allows a pentagon to come out upside down by taking a double for moon *

c for
2 years ago

1 answers
129 views
0
C language: I want to make sure that if the result is duplicated, it is only the minimum box

It is a problem to put 12~17kg of sugar in boxes of 3KG and 5KG so that the weight of the box is minimal without leaving any weight. I want to make it so that if it comes out in duplicate in the code ...

2 years ago

1 answers
71 views
0
Python prime superposition for statement question

You want to take an integer n and add a decimal number to the list L that is greater than n*2, but if you enter 16 in n, you only run up to 17 and not more. What I want is to turn from 17 to 31 and ad...

2 years ago

1 answers
77 views
0
Limit on the list? Is there something like that?

Hello, this is my first time to analyze data since I entered Python.I wrote the code with the same goal as the code below, but the problem only progresses to 10 in the For MoonThere's been an error af...

2 years ago
« - 8 - »

© 2024 OneMinuteCode. All rights reserved.