1

I want to put a variable in the text place like this, but it doesn't work. So I need another way to put variable in it, but I don't know what is it.

code: '''screen.draw.text(variable, pos=(10, 10), color="black", fontsize = 24)'''

  • 1
    What is the variable type ? Try str(variable) – Rayon Magique Oct 25 '22 at 07:43
  • `screen.draw.text` does not exist at all. See [pygame - How to display text with font & color?](https://stackoverflow.com/questions/10077644/python-display-text-with-font-color/64487335#64487335) – Rabbid76 Oct 25 '22 at 14:49

0 Answers0