+ 10
Sololearn problem??
Why whenever the barn goes up or down to whatever number but when I decrease the number to where it says 0 and for example if I went up 5 numbers and reached 0 it should be black, but when I do this and when it reaches 0 it stays green if you get what I mean https://code.sololearn.com/Wo4N4ykin6Bj/?ref=app
25 Respostas
+ 2
Yea i already tried that, it still shoudlbt work as in both of my if statement i added and “do not” statement
+ 2
Jay Matthews no i want the 0 to stay black
+ 2
Okay, thank you FF9900
+ 2
Okay, probably my last question, how do I make it so after the reset button does its thing not leave off the last number, like if i left off the number 20, pressed rhe reset button, the added 1, the nimebr would go to numbef 21, i jsut wabt it to go back to 1 after the reset which is 0
+ 2
I did that, but javascript be mean and after the reset if 0 okay, BUT if i add an increment of 1 (the + symbol) and BEFORE i clicked the reset for example i left off the number 21, and i did the increment AFTER the reset the number will immediatley go to 22 thats myn problem
+ 2
I did that already
+ 1
Okay, good good, now you know how when the numebr is below 0 and it shows the negative symbol, how can i apply that when the number is above 0 and it has a ‘+’ symbol FF9900 Jay Matthews
+ 1
How did you make it so the zero and the negatives dont have the +?
+ 1
Im asking whenever i click the positive button to whatever number, then if i click the reset btn or i go to the negatives the positive synbol js ztill there
0
So do i do that in javascript?
0
I saw that u used display.classlist.remove(“positive”) can i do that?
0
Yea it shwos a synyax error when i do that
0
So,
document.getElementById(“0”);
display.classlist.remove(“positive”)?
0
It says now that classlist.remove is undefined
0
Okay thank tou it now works!
0
Change line 4 to btn>0
Change line 11 to btn<=0
Done!!! 🙂 that is all
0
Change line 34 right: 5px;
0
Please i need help on python while loop
0
ef search(text,word):
text = input()
word = input()
if word == text:
return "Word found"
else:
return "Word not found"
print(search(text,word))
can somene tell what's wrong in this code line?
much apreciation, i'm clopet noob in python
0
total = 0
#your code goes here
age = int(input())
x = 0
while x<6:
if (age > 2):
total += 100
age=int(input())
continue
else
age=int(input())
continue
x += x
print (total)