meaning of [ ]

Rick Johnson rantingrickjohnson at gmail.com
Sun Sep 3 07:39:51 EDT 2017


Andrej Viktorovich wrote:
> I suppose p becomes array of strings but what [] means in this statement?

Generally, it's an inline form of writing a loop that returns a list. There are other types as well.

https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions



More information about the Python-list mailing list