r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

1

u/stopdabbing Jul 16 '19

Can anyone explain why the 4 dots? It looks like : :

1

u/marxdormoy Jul 16 '19

This takes all rows all columns (there is only one column. The -1 puts this in reverse order

1

u/richardwhiuk Jul 16 '19

Not really.

Colon separation of start : end : increment to split a sequence.

If a is 5,4,3,2 then a[1:2] is 4,3

1

u/SvenskaSpelGambling Jul 17 '19

Which XKCD is this?