Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
The correct PIN is 2468. The user has at most 3 attempts.
Welcome and stop.Card locked and stop (do not keep asking).You can use a for loop over three attempts with break, or a while with a counter.
Skills: loop + if / else, early exit.