Skip to main content
added 6 characters in body
Source Link
Mazdak
  • 159
  • 9

Python 2 - 72

>>> def p(N):print'\n'.join(' '.join(map(str,range(1,i+1i+2)))for i in range(1,N+1N))
... 
>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 72

>>> def p(N):print'\n'.join(' '.join(map(str,range(1,i+1)))for i in range(1,N+1))

>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 72

>>> def p(N):print'\n'.join(' '.join(map(str,range(1,i+2)))for i in range(N))
... 
>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
deleted 21 characters in body
Source Link
Mazdak
  • 159
  • 9

Python 2 - 7872

>>> def p(N):
...    print'\n'.join(' '.join(map(str,range(1,i+1)))for i in range(1,N+1))
... 
>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 78

>>> def p(N):
...    print'\n'.join(' '.join(map(str,range(1,i+1)))for i in range(1,N+1))
... 
>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 72

>>> def p(N):print'\n'.join(' '.join(map(str,range(1,i+1)))for i in range(1,N+1))

>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
deleted 11 characters in body
Source Link
Mazdak
  • 159
  • 9

Python 2 - 6178

>>> def printerp(N):
...   print '\n'print'\n'.join(' '.join(map(str,range(1,i+1))) for i in range(1,N+1))
... 
>>> printerp(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 61

>>> def printer(N):
...   print '\n'.join(' '.join(map(str,range(1,i+1))) for i in range(1,N+1))
... 
>>> printer(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Python 2 - 78

>>> def p(N):
...    print'\n'.join(' '.join(map(str,range(1,i+1)))for i in range(1,N+1))
... 
>>> p(5)
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
added 124 characters in body
Source Link
Mazdak
  • 159
  • 9
Loading
deleted 7 characters in body
Source Link
Mazdak
  • 159
  • 9
Loading
Better formatting
Source Link
Οurous
  • 8.1k
  • 1
  • 16
  • 38
Loading
added 2 characters in body
Source Link
Mazdak
  • 159
  • 9
Loading
Source Link
Mazdak
  • 159
  • 9
Loading