Can someone please explain this Python code to me?
import pygame
click, _, _ = pygame.mouse.get_pressed()
I know that pygame.mouse.get_pressed()
returns an array indicating if the mouse is clicked. But there are 3 output objects in the code: First is click
, second is _
? third is _
?
Why do the second and third output objects have the same name and is an underscore? What do they represent? Thanks a lot!