The following code is trying to display simple text on the pygame window, but it gets an error saying render() takes no keyword arguments.
font = pygame.font.Font(pygame.font.get_default_font(), 36)
text_surface = font.render('Hello world', antialias=True, color=(0, 0, 0))
display.blit(text_surface, dest=(0,0))