On Wed, Nov 23, 2016 at 9:44 PM, Cai Gengyang <gengyang...@gmail.com> wrote: >>>> pygame.draw.rect(screen, BROWN, [60, 400, 30, 45]) > Traceback (most recent call last): > File "<pyshell#3>", line 1, in <module> > pygame.draw.rect(screen, BROWN, [60, 400, 30, 45]) > NameError: name 'pygame' is not defined > > How to solve this error ? > -- > https://mail.python.org/mailman/listinfo/python-list
have you imported pygame? -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list