1import pygame as pg
2pg.init()
3
4rect = pg.Rect(x,y,width = 100, height = 50)
5# method 1, returns a tuple of width and height
6>>> print(rect.get_size())
7(100,50)
8# method 2, returns a specific value
9>>> print(rect.get_width())
10100
11>>> print(rect.get_height())
1250