I saw this in a Pygame tutorial:
size = width, height = 600,400
screen = pygame.display.set_mode(size)
I understand width, height being set to 600, 400 respectively, but what is size? That's one variable. Thanks.
size is assigned the tuple (600,400).
>>> size = width, height = 600,400
>>> size
(600, 400)
>>> width
600
>>> height
400
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With