0

Code is working alright but how can I add if statements to it?

https://code.sololearn.com/ck7qliaeKPHx/?ref=app

22nd May 2020, 2:25 PM
Rexford Owusu Ansah
Rexford Owusu Ansah - avatar
2 ответов
+ 2
You should put the generated random number in a variable then you can add: guess = int(input()) #collects input from user if guess = variable: do this elif guess > variable: do that else: do this ....and so on and so forth. Be creative with it😃😃😃
22nd May 2020, 2:39 PM
Tomiwa Joseph
Tomiwa Joseph - avatar