#importar
from numpy import np
import pygame, sys
#iniciar pygame
pygame.init()
#tamaño pantalla
size = width, height = 800, 500
#pantalla
screen = pygame.display.set_mode(size)
while True:
pass
Al ejecutar dice:
from numpy import np File "c:\Users\x\Desktop\Archivos\x\PyScripts\numpy.py", line 1, in np.array(( NameError: name 'np' is not defined
import numpy as np