4th Jun 2017, 5:20 AM
Purnima
Purnima - avatar
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()
5th Jun 2017, 1:08 AM
Parthiban Annamalai
Parthiban Annamalai - avatar
+ 3
It is a Python code
4th Jun 2017, 6:53 AM
Purnima
Purnima - avatar
+ 2
Try it in System..Not in the app.. then you'd get to know the issue
4th Jun 2017, 6:51 AM
Purnima
Purnima - avatar
+ 2
@Akhilesh Reddy Goli : Any issues relating to the code above??
4th Jun 2017, 5:07 PM
Purnima
Purnima - avatar
+ 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??
5th Jun 2017, 3:15 AM
Purnima
Purnima - avatar
+ 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 â˜ș
5th Jun 2017, 3:39 AM
Purnima
Purnima - avatar
+ 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
5th Jun 2017, 3:59 AM
Parthiban Annamalai
Parthiban Annamalai - avatar
+ 1
Purnima how can i contact you??
4th Jun 2017, 5:00 PM
Akhilesh Reddy Goli
Akhilesh Reddy Goli - avatar
+ 1
thank you Parthiban
5th Jun 2017, 4:09 AM
Purnima
Purnima - avatar