I am new to python.. and I have seen this statement
['a' for i in range(10)]
My question is in general, how could I have know that such a line is possible in python for generating an array? I don't understand how come the loop is at the end? Does this have a name?