Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
Combine loops: an outer loop asks if the player wants another round (y / n). An inner loop plays one full game (secret 1โ20, too high / too low until correct).
Skills: nested while, break only inner loop, string check for play again.
Keep the range 1โ20 so rounds are quick.