Quiz # 5

Quiz number five consisted of the first five exercises of the following list of Python problems:

http://www.ling.gu.se/~lager/python_exercises.html 

The first two problems were about returning the largest number introduced by the user, something I had already done in other practices and I have posts about. Here they are:

First problem:

quiz5-1quiz5-1run

Second problem:

quiz5-2quiz5-2run

Problem three was about giving the length of a string, like this:

quiz5-3

quiz5-3run

Problem four consisted of outputting True if a character introduced by the user was a vowel, and False if it was otherwise:

quiz5-4

quiz5-4run

Problem five was a little more complicated. I had to, as said textually in the page, “double every consonant and place an occurrence of "o" in between.” It took me a little more time to understand how it was done, but at the end it looked like this:

quiz5-5

quiz5-5run

And that’s it for this quiz!

3 thoughts on “Quiz # 5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s