survey exercise with Python
Go to solution
Solved by RadiatingLight,
Just now, RadiatingLight said:should be
print(self.question)because you are accessing a class variable
also your docstring for show_results is wrong.
this also applies to show_responses, you need to access self.responses
-
Featured Topics
-
Topics
-
NamelessUser ·
Posted in Troubleshooting0 -
HereWeGo ·
Posted in Power Supplies0 -
Ariolander ·
Posted in Linux, macOS and Everything Not-Windows2 -
0
-
MorbidlyOBeast ·
Posted in Troubleshooting1 -
2
-
2
-
QuacksLxgic ·
Posted in Troubleshooting4 -
5
-
4
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now