This is because get_ticks is not a direct method of pygame , but you can access this method with pygame.time by writing:
get_ticks
pygame
pygame.time
import pygame as p start_ticks = p.time.get_ticks()