Q:

How do I get x and y coords of the mouse individually?

I want to print the x position of my mouse without the y position.
import pygame
pygame.init()

mouse = pygame.mouse.get_pos()
print(mouse)

This prints the x and y of the mouse as a tuple but I want to just print the x. How do I do this?

A:

You can simply unpack your tuples:
x, y = pygame.mouse.get_pos()

