Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
epequeno committed Oct 22, 2015
1 parent 6ef6283 commit 1456e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ch08/8.02.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

def ducks():
for p in prefixes:
if p == "O" or p == "Q":
yield '{}uack'.format(i)
if p in ['O', 'Q']:
yield '{}uack'.format(p)
else:
yield '{}ack'.format(i)
yield '{}ack'.format(p)

for i in list(ducks()):
print i

0 comments on commit 1456e41

Please sign in to comment.