You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a very good example of how to use composition in Python to wrap a class. However, the return functions are missing from "count" and "unshift".
def unshift(self):
"""Removes the head item and returns it."""
return self.list.unshift()
Hello Zed,
I think this is a very good example of how to use composition in Python to wrap a class. However, the return functions are missing from "count" and "unshift".
def unshift(self):
"""Removes the head item and returns it."""
return self.list.unshift()
def count(self):
return self.list.count()
learn-more-python-the-hard-way-solutions/ex15_queuestack/queue_wrapped.py
Line 10 in dc3adab
The text was updated successfully, but these errors were encountered: