Sep-25-2018, 09:30 AM
You could use list comprehension
L = [pattern(i) for i in range(n)]
create list from repeated pattern in python
|
|
Messages In This Thread |
create list from repeated pattern in python - by Code4fun - Sep-25-2018, 09:10 AM
RE: create list from repeated pattern in python - by Gribouillis - Sep-25-2018, 09:30 AM
RE: create list from repeated pattern in python - by woooee - Sep-25-2018, 07:09 PM
|