Nov-21-2017, 10:39 PM
I want to produce the list: ["*", "*", "*", "*", "*"].
Can this be done in a simple line? (I don't want to have to create a function to do it.)
So far I have been having to do the following, which is very inconvenient and tedious:
v = [] for i in xrange(5): v.append("*")