Timeline for Print number triangle
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 12, 2015 at 21:14 | comment | added | Jakube |
Or even mhdhN , but that's a complete different approach.
|
|
Mar 12, 2015 at 21:12 | comment | added | Jakube |
@Sieg r is the Python-range function, therefore the -1 (r1N creates the list [1, 2, ..., N-1] ). But in the Nth iteration of the loop, I want the list [1, 2, ..., N+1] , therefore I need to add 2 to N . r1hhN translates directly to range(1, N+1+1) . Another possibility would be r1+N2 (range(1, N+2) ).
|
|
Mar 12, 2015 at 20:30 | comment | added | seequ |
I'm not familiar with Pyth, so could you elaborate why N+1+1-1 ?
|
|
Mar 12, 2015 at 12:47 | comment | added | Optimizer |
a briefly used to return the appended list.
|
|
Mar 12, 2015 at 12:15 | comment | added | Sp3000 |
An alternative 9: VQaYhNjdY . If only a returned the list, then something like VQjdaYhN would be 8.
|
|
Mar 12, 2015 at 8:46 | history | answered | Jakube | CC BY-SA 3.0 |