On Sun, Nov 11, 2018 at 4:59 PM Nicholas Harrison
<nicholasharrison...@gmail.com> wrote:
> It has a couple of siblings that should be obvious (think list or set 
> comprehension):
>
> [start:stop:step] # gives a list
> {start:stop:step} # gives a set
>

Be careful of this last one. If you omit the step, it looks like this:

{start:stop}

which is a dictionary display.

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to