if문 tag

47 questions


1 answers
127 views
0
There are too many if statements, can we reduce them?

The code below works the way I want it to. The cord is so dirty. I tried to shorten it several times, but it doesn't make much difference. Is there any mathematical formula that can help reduce code? ...

2 years ago

2 answers
135 views
0
I am using String.equals() sentence in If conditional statement, is there any method or method to reduce it further?

Currently, I am writing an if sentence as below. By the way, I want to compare the word WORDS with the corresponding objects and the equivalents of a specific word, is there a way to make it simpler?O...

2 years ago

1 answers
104 views
0
You're wrong on the Python if statement

Age = 30 If Age > 20:...print (Type) Please reply.

2 years ago

2 answers
137 views
0
Find Python Beautiful Soup Regular Expression

I'd like to modify the numbers in the QTY column as shown in the picture.The code in each QTY column is a code that changes only the last digit, such as txtAvailableQTY_0, txtAvailableQTY_1, txtAvaila...


1 answers
110 views
0
Java coding question

for(int p = 0; p < index.length;p++) { int count=0; for(int q = p+1; q < index.length; q++) { if (Arrays.equals(index[p], index[q])) { count = count +1; } } if (count==7) { For (in...

2 years ago

1 answers
77 views
0
Python 3 Code Questions...

// Enter your code hereimport datetime # API for 4 weeks Top20 statistics Date Processing for real timenow = datetime.datetime.now() # Current dateweeks4 = now + datetime.timedelta(weeks=-4) #current ...

2 years ago

1 answers
129 views
0
How can I write without using an ifelse statement in Python?

x= 2000y= 3000z= 3500a = int (input (Number of Americano Sales: )))b = int (input (Café latte sales count: )))c = int (input (number of cappuccino sold: )))t = x*at = t + y*bt = t + z*cprint (Total sa...

2 years ago

1 answers
79 views
0
I want to use the Python output value as a variable in another list.

I made a code that increases the date by a month using the if and when statements.And if you use a print between the codes, you can do whatever you want 201607201608201609201610201611201612The dates c...

2 years ago

1 answers
127 views
0
How do I change the value of a variable with if? c#

if (Input.GetKeyDown(KeyCode.DownArrow)) { int current_health = 10; current_health += 30; Debug.Log (Recovery Potion Used +current_health);} The more I press it, the more I want to raise the blood....

2 years ago

1 answers
136 views
0
[Python] Indent question when using if (first time coding)

I'm trying to determine if I'm overweight and underweight by BMI index. if BMI<18.5: print(Your BMI indicates that you are underweight.) if BMI>25: print(Your BMI indicates that you are overwei...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.