0

In java it would be: int Bit_list[] = new int Bit_list [25];

I can get it done with a loop and append like this:

Bit_list = ['x']

"""
        loop to make space in memory for Bit_list
"""

a = 0
while  (a != 21):

    appd = 'x'
    Bit_list.append(appd)

    a  += 1

Is there a better way?

Ronald
  • 61
  • 1
  • 9

1 Answers1

1

this is one method:

lst = 25 * [None]
print(lst)
hiro protagonist
  • 44,693
  • 14
  • 86
  • 111