Ask coding questions

← Back to all posts
So... anyone know how to change a list inside a formatter in python?
TerrorbuildLuna (38)
  screen = "Score: " + str(score) + '''
 %s █
 %s █
 %s █
 %s █
 %s █
 %s █
 %s █
 %s █
 %s █
 %s █
████████████████████████████████''' % (Bpos[1],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Ppos)
  print(screen)

I am trying to make a blocks game with python, but I have no idea how to change the Bpos so that it appears to be moving down! Bpos is the block position, Bpos[1] is a "W", Bpos[0] is a space. Ppos is the player position. I used spaces on either side of the screen to make it appear to be movable.

Comments
hotnewtop
TerrorbuildLuna (38)

@Coder100 yup, it doesn't work here on repl.it, but it works on VS code