I want to get pygame to print the a variable but I cant figure out how to do so, I've tried so much I just cant find a clear answer anywhere
the code:
import pygame
import sys
import random
a = random.randint(1,100)
pygame.init()
width = 800
height = 600
screen = pygame.display.set_mode(size=(width,height))
text_font = pygame.font.Font(None,50)
title = text_font.render("a",True,"#000000")
clock = pygame.time.Clock()
while True:
screen.fill("#00ffff")
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit
sys.exit()
screen.blit(title,(50,50))
pygame.display.update()
clock.tick(60)