How to complete this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
10th Mar 2020, 6:41 PM
51207
51207 - avatar
4 Answers
+ 1
https://code.sololearn.com/cEg9oWeRI1qp/?ref=app
11th Mar 2020, 11:26 AM
51207
51207 - avatar
+ 3
Hey 51207 your question is not clear enough if you dont mind adding more details
10th Mar 2020, 6:53 PM
✳AsterisK✳
✳AsterisK✳ - avatar
10th Mar 2020, 7:29 PM
Vitaly Sokol
Vitaly Sokol - avatar
+ 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)
10th Mar 2020, 7:30 PM
andriy kan
andriy kan - avatar