Skip to content
Sign upLog in

Not Sure Why This isn't working?

Profile icon

Its not completed but it just keeps repeating same thing and i did not program it to do that can someone help

You are viewing a single comment. View All
Profile icon

that is just the random function though - if you choose a number 1-4, 1, 2, and 3 are much more likely, and come up almost all the time. The reason it always prints Your number is 4 is because he wrote print("Your number is 4"). It repeats because it is in a while loop. There is nothing going wrong there...