Skip to content

Instantly share code, notes, and snippets.

@alexbw
Created July 17, 2018 16:36
Show Gist options
  • Select an option

  • Save alexbw/c6087d70bc2c23e9b0ecb31e17c81ee5 to your computer and use it in GitHub Desktop.

Select an option

Save alexbw/c6087d70bc2c23e9b0ecb31e17c81ee5 to your computer and use it in GitHub Desktop.

Revisions

  1. alexbw created this gist Jul 17, 2018.
    6 changes: 6 additions & 0 deletions nested_control_flow.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    def f(n):
    if n >= 0:
    while n < 5:
    n += 1
    print(n)
    return n