+ 1
How
How do you end a program using an ‘if‘ and an ‘else’. For example if the user enters the wrong password into the program it ends the program. Is there a command?
3 Answers
+ 4
if ... :
exit(1)
+ 2
Check out this email validator that can easily be adapted to a pw checker :
https://code.sololearn.com/cnbUBK5uKvnG/?ref=app
0
Hello. Sorry, i can write this, but only on the JavaScript. 😅