or tag

453 questions


1 answers
101 views
0
I want to assign multiple strings to one variable, but I get an error. - - JavaScript

const arr = ['a', 'b', 'c', 'd', 'e']; var x = b || d || g || h || z; const the_number_of_x = arr.filter(i => i === x).length; if (the_number_of_x === 2) { console.log(success!) } } else { consol...


1 answers
76 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
Why is it only executed once the repeat is turned?

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h>int main(void) { int num1; int num2; printf(Enter integer 1 : ); int a = scanf(%d, &num1); printf(Enter integer 2 : ); int b = scanf(%d, &am...

2 years ago

1 answers
67 views
0
c Language operator questions

include<stdio.h>int main(void){a=63, b=1, c=11, d=8, e=28;d %= c += 5 - d--;printf(%d %d %d %d %d, a,b,c,d,e);return 0;}Why does the value of d come to -1 when you turn the code to?When calculat...

2 years ago

1 answers
109 views
0
Is there a way to make a code editor in Python?

I'm making a programming language because I'm bored.The grammar used in the programming language is different from the grammar on the market, so can you make a code editor?It's okay to simply be a Cod...


1 answers
115 views
0
I don't know the cause of Python TypeError. (scipy.optimize)

def func_y(x, a): return (1 + a) * x / (a + x) #TypeError: can't multiply sequence by non-int of type 'float'a = 0.0462x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]y = func_y(x, a)popt, pcov ...

2 years ago

2 answers
69 views
0
This is a question from a beginner who doesn't know the concept of Java creator

package test1;public class test1 {public static void main(String[] args) { Animals dog = new Dog(3); System.out.println(dog.age);}}================================================package test1;publ...

2 years ago

1 answers
54 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
89 views
0
Python split related error

def cal(a,b): print(a,'+',b,'=',a+b) print(a,'-',b,'=',a-b) print(a,'*',b,'=',a*b) print(a,'/',b,'=',a/b)n=int (input ('two integer inputs:')).spilt()cal(n)If you create a function like this and enter...

2 years ago

1 answers
113 views
0
Is there an error?

I don't understand the error, so I'm asking you a question

« - 40 - »

© 2024 OneMinuteCode. All rights reserved.