text: 0
  Hello
  This is like my 4th week using Python and I'm still not familiar with it so I might need some help from you guys.
  I gotta write a little Connect 4 game in Python, I just got started and boom - I'm stuck!
  I tried to create a board for the game using two lists. Here is how far I got:
  def board(): fielda = [] fieldb = [] rows = int(raw_input('Height ')) columns = int(raw_input('Width ')) if rows < 4: rows = 4 if columns < 4: columns = 4 for i in range(columns): fieldb.append('-') for i in range(rows): fielda.append(fieldb) print fielda board()
  It gives out the following if you type in 5 for 'Height' and 4 for 'Width'
  [['-', '-', '-', '-'], ['-', '-', '-', '-'], ['-', '-', '-', '-'], ['-', '-', '-', '-'], ['-', '-', '-', '-']]
  but I want it to be like this
  [,
  ,
  ,
  ,
  ]
  Is there any way to handle this?
  I'll appreciate any help.
  Thanks in advance