logo

Crowdly

Qu'affiche le code python suivant? def animal_facts(animal):     match ani...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Qu'affiche le code python suivant?

def animal_facts(animal):

    match animal:

        case 'Lion':

            print('The lion is known as the king of the jungle.')

        case 'Elephant':

            print('Elephants are the largest land animals on Earth.')

        case 'Dolphin':

            print('Dolphins are highly intelligent marine mammals.')

        case _:

            print('Sorry, I don't have any facts about that animal.')

animal_facts('Lion')

animal_facts('Dolphin')

animal_facts('Elephant')

animal_facts('Tiger')

0%
0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ipsa.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!