+ 1
First you are taking a user input, and then randomly generating 0 or 1, if the user entered input matches with the randomly generated one, you output "Good Job", otherwise you simple print "0". Is it not what you expected? The reason is you are not converting the type of user input to the integer type like this. x = int(input())
5th Feb 2018, 10:14 AM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar