+ 2
Help me out with this code
9 Answers
+ 2
https://www.pygame.org/wiki/about
pygame is a python library for game/multimedia app development.
If you want this library to be imported into your python code, you should install it in your desktop.
www.pygame.org/download.shtml
In SoloLearn Code playground, we are unable to import this library and hence getting the error.
And in line #3, there's a typo. It's âactually pygame.display.init()
+ 3
It is a Python code
+ 2
Try it in System..Not in the app..
then you'd get to know the issue
+ 2
@Akhilesh Reddy Goli :
Any issues relating to the code above??
+ 2
@Parthiban Annamalai:
I have already installed the library..I Have run other codes for changing the canvas and background colors and setting captions...All of them are working except this...
I corrected line#3
The code isn't running on my pc..It said attribute error...Can you elaborate on that??
+ 2
@Antony_michea1:
this doesn't require any high ranked q&A discussns.
I think this is a very basic concept..So..may be Anyone who knows python can help..
yet thanks fr the idea âș
+ 2
As I am a beginner, I just understood that AttributeError occurs when we try to use an attribute which the object doesn't have. For eg., an object called 'Parthiban' may not be having the attribute 'validAnswer'. So, below code throws AttributeError
>>> print Parthiban.validAnswer
I'll setup py to test the code in my pc and let you know if error gets resolved
+ 1
Purnima how can i contact you??
+ 1
thank you Parthiban