Untitled

mail@pastecode.io avatar
unknown
python
25 days ago
906 B
1
Indexable
Never
if __name__ == '__main__':
    n = 5
    m = 3

    for _ in range(n):
        for _ in range(m):
            print('ab', end=' -> ')
        print('c')

    n = 0
    m = 0
    print('ab', end=' -> ')
    m = 1
    print('ab', end=' -> ')
    m = 2
    print('ab', end=' -> ')
    print('c')

    n = 1
    m = 0
    print('ab', end=' -> ')
    m = 1
    print('ab', end=' -> ')
    m = 2
    print('ab', end=' -> ')
    print('c')

    n = 2
    m = 0
    print('ab', end=' -> ')
    m = 1
    print('ab', end=' -> ')
    m = 2
    print('ab', end=' -> ')
    print('c')

    n = 3
    m = 0
    print('ab', end=' -> ')
    m = 1
    print('ab', end=' -> ')
    m = 2
    print('ab', end=' -> ')
    print('c')

    n = 4
    m = 0
    print('ab', end=' -> ')
    m = 1
    print('ab', end=' -> ')
    m = 2
    print('ab', end=' -> ')
    print('c')
Leave a Comment