+ 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.
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