On 2021-12-14 15:46:06, a.kolpakov2010--- via Python-ideas wrote: > It would be awesome to be able to create a list with just: > > li = [1—100] > > or > > li = [1 .. 100]
What's wrong with > range(1, 100) Do you really want a list only to use in a for loop? What's wrong with the iterator? _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/UOCNQIA2B2P2RUB5FZV667KCIZILXAXS/ Code of Conduct: http://python.org/psf/codeofconduct/
