I want to add a string, lets say "NEWYEAR", to an array with a length that is not necessarily the same as the length of "NEWYEAR" - whereas the array should be "fully" filled with the string, leaving no whitespaces behind. Roughly sketched, this is what I have in mind:
array = [0,0,0,0,0,0,0,0,0]
some_string="NEWYEAR"
#add some_string to array until no place is left in array.
#some_string should repeat itself until upper condition is fulfilled.
array = ["N","E","W","Y","E","A","R","N","E"]
Could you tell me an intuitive way to accomplish my goal ?
arrayand its contents are from NEWYEAR