import pygame
pygame.init()
game_display = pygame.display.set_mode((800, 800))
def writeText(string, coordx, coordy, fontSize):
#set the font to write with
font = pygame.font.Font('freesansbold.ttf', fontSize)
#(0, 0, 0) is black, to make black text
text = font.render(string, True, (255, 255, 255))
#get the rect of the text
textRect = text.get_rect()
#set the position of the text
textRect.center = (coordx, coordy)
#add text to window
game_display.blit(text, textRect)
#update window
pygame.display.update()
text = ("sub 2 zonellobster250 for python stuff")
writeText((text), 400, 400, 20)