Jump to content

Loops: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 February 2025

3 April 2024

  • curprev 17:5217:52, 3 April 2024 Rob talk contribs 1,671 bytes +1,078 No edit summary
  • curprev 15:4515:45, 3 April 2024 Rob talk contribs 593 bytes +593 Created page with "== while Loops == <syntaxhighlight lang="python" line> my_number = 1 while my_number <= 10: print(my_number) my_number += 1 </syntaxhighlight> <syntaxhighlight lang="python" line> prompt = "Enter any message to share. prompt+= "\nPress q to quit" entry = "" while entry != 'q': entry = input(prompt) print("You quit the program") </syntaxhighlight> <syntaxhighlight lang="python" line> </syntaxhighlight> <syntaxhighlight lang="python" line> </syntaxhighli..."