Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
For every number let's throw one angry dog in a bag and then lets count how many dogs are there solution in Creative category for Funny Addition by Denis_Gerashchenko
def checkio(al):
'''
__
__/o \_
\____ \
/ \
__ //\ \
__/o \-//--\ \_/
\____ ___ \ |
|| \ |\ |
_|| _||_||
'''
masya = 'Masya'
bag_of_dogs = []
for number in al:
for reasons in range(number):
print('Masya drags an angry dog to a bag')
bag_of_dogs.append('angry dog')
print(f'So there is {len(bag_of_dogs)} in a bag')
return len(bag_of_dogs)
March 26, 2019