Quiz # 6

This quiz consisted of the next five exercises from the page of quiz # 5.

In problem number six I had to add and multiply the elements in a list. My programming teacher helped me do this by making me think first about the process, step by step, the program has to make in order to get the expected result.

When I finished, it looked like this:


And ran like this:


Problem number seven was about reversing a string. I learned how to do that by looking into these two pages:



This is how I did it:


And how it ran:


The following problem was about indicating if a word is a palindrome (like ‘radar’) or not. After doing problem seven, eight was easy:


Here is how it ran:


Problem nine was about indicating if a value was or not in a list, without using the operator in. Here is how I did it:


And how it ran:


And finally, problem number ten was about comparing two lists and indicating if they had an element in common. After doing problem nine, this one was simple enough:


Here is how it ran:


3 thoughts on “Quiz # 6

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