list(range(1, 101))

I think we don't need a whole new syntax for something that's already an
easy one-liner.


--
Finn (Mobile)

On Tue, Dec 14, 2021, 8:52 AM a.kolpakov2010--- via Python-ideas <
python-ideas@python.org> wrote:

> It would be awesome to be able to create a list with just:
>
> li = [1—100]
>
> or
>
> li = [1 .. 100]
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/CQOPU4ZMADKD5WOV5G3ZB4OAWDP4YKF6/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EAAI7EAOXRCV2HK4QQ7QS36VUQ6B3MBR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to