Ask your own question, for FREE!
Classes 21 Online
OpenStudy (anonymous):

I am trying to insert integers in a queue created as a list, but cant seem to get the right result

OpenStudy (anonymous):

OpenStudy (anonymous):

Python does not seem to like it if you assign something directly to `self`. Instead of doing that, you could create a variable (let's say `list`) as part of your class and use and assign to `self.list` instead of using and assigning `self` directly.

OpenStudy (anonymous):

That was awesome. Thanks. Its working beautifully now.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!