"unexpected argument"

Peter Pearson pkpearson at nowhere.invalid
Tue Mar 9 15:11:48 EST 2021


On Tue, 9 Mar 2021 15:03:54 -0500, Quentin Bock <qberz2005 at gmail.com> wrote:
> Error 1:
> Space Invaders.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if bullet_state is "fire":
>
> Error 2:
> line 66, in <module>
>     if event.key == pygame.K_SPACE:
> AttributeError: 'Event' object has no attribute 'key'
>
> Code:
> import pygame
> import random
[snip]
>
> Why is it saying unexpected argument?
> Youtube Tutorial I'm Following:
> https://www.youtube.com/watch?v=FfWpgLFMI7w

Who is saying "unexpected argument"?  I see two error messages,
neither of which is "unexpected argument".  

-- 
To email me, substitute nowhere->runbox, invalid->com.


More information about the Python-list mailing list