+ 1

Help with random number generator?

I’m trying to create a random number generator but all my attempts flop? help? The code is in my profile.

31st Jan 2022, 3:47 PM
Iris Strickland
1 Answer
+ 1
This is your code? put your input() inside int() to convert the input to an integer, otherwise the input is a string int(input()) and eliminate the second condition of the if and the elif, that condition does not make sense, you are already evaluating that in the while https://code.sololearn.com/cW5ecKpBJRWj/?ref=app
31st Jan 2022, 4:16 PM
CGM
CGM - avatar