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
  • 51
  • 1
  • 8

1 Answers1

1

this is one method:

lst = 25 * [None]
print(lst)
hiro protagonist
  • 40,708
  • 13
  • 78
  • 98