In this level we will grow a bit more towards real Python code. You will also learn how to match two lists together. This way you can program a code in which the correct animal is matched to the right sound. Because the two codes below... Are obviously nonsense!

animals = 'chicken', 'horse', 'cow'
sounds = 'cluck', 'neigh', 'moo'
for animal in animals
    print 'A ' animal ' says ' sounds at random

You could also try to make it work this way, but....

animals = 'chicken', 'horse', 'cow'
sounds = 'cluck', 'neigh', 'moo'
for animal in animals
    for sound in sounds
        print 'A ' animal ' says ' sound

Note: These codes will not work like this in this level. Head to the next adventure to see which parts you need to correct.

Latest update: 2025 May 02(809e63)