+ 1
How to complete this code?
4 odpowiedzi
+ 1
https://code.sololearn.com/cEg9oWeRI1qp/?ref=app
+ 3
Hey 51207 your question is not clear enough if you dont mind adding more details
+ 1
if I understood correctly:
import random,time
lis = [100,-100,0,100,-100,0]
ra = 0
while True:
rr = random.choice(lis)
ra = ra+rr
print(ra, "increase" if rr > 0 else "decrease" if rr < 0 else "constant")
time.sleep(1)