Skip to content

Instantly share code, notes, and snippets.

@alevchuk
Created July 29, 2021 12:31
Show Gist options
  • Select an option

  • Save alevchuk/4dbdb7fe50c07ceba2cd604c2eddd0d0 to your computer and use it in GitHub Desktop.

Select an option

Save alevchuk/4dbdb7fe50c07ceba2cd604c2eddd0d0 to your computer and use it in GitHub Desktop.

Revisions

  1. alevchuk created this gist Jul 29, 2021.
    12 changes: 12 additions & 0 deletions nested_loops.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    for column in range(3):
    print(str(column) + '---> ', end='')
    for cell in range(5):
    print('[' + str(cell) + '] ', end='')
    print('~~~')

    # Результат:
    '''
    0---> [0] [1] [2] [3] [4] ~~~
    1---> [0] [1] [2] [3] [4] ~~~
    2---> [0] [1] [2] [3] [4] ~~~
    '''