You are viewing a single comment's thread. Return to all comments →
near perfect, but can be more pythonic if you do:
if not self.butt: # instead of len(self.but) == 0 while not self.mouth: # instead of while len(self.mouth) > 0
other than that I think that's as pythonic as possible
would it be faster if you did
for i in range(len(self.mouth)): # ...
Seems like cookies are disabled on this browser, please enable them to open this website
Queues: A Tale of Two Stacks
You are viewing a single comment's thread. Return to all comments →
near perfect, but can be more pythonic if you do:
other than that I think that's as pythonic as possible
would it be faster if you did