If Statements
Pepper100 (6)

My code is a random number generator that takes an indented ridiculously long time to use. https://repl.it/@Pepper100/RNG2-Backup#main.py I have tried to edit it so if you use the right," Authorization code," it will skip the time and give you your random number there and then. It is coming up as an error in line 17 and I can't figure out why. Can anyone help me with this? code is https://repl.it/@Pepper100/Random-Number-Generator-2#main.py

You are viewing a single comment. View All
Answered by Coder100 (4393) [earned 5 cycles]
View Answer
CodeLongAndPros (963)

@Pepper100 That's there because it did not go out the way repl expected. It left the party though the backdoor.

You could also put all your code in a main function and use return to break out.