Quiz #11 pt. 2

Here are the other five problems of quiz #11.

Number six was about the fibonacci sequence, also tasked in quiz # 8:

https://pythoncoursesite.wordpress.com/2017/03/05/quiz-8/

The next one was a function that returned the sum of the squares of a list of numbers:

suma_cuadradossuma_cuadrados_run

Problem eight was the same as the babylonian method exercise I did a few days ago:

https://pythoncoursesite.wordpress.com/2017/04/07/babylonian-method/

Next problem consisted of doing a function that finds the number of times the word “banana” is found in a string. My classmate Elu helped me with this, by giving me an idea of how to do it:

bananasbananas_run

And finally, the last question asked for a function that received two numbers and returned their greatest common divisor.

To resolve this, I found the following image in this page:

http://www.eljavatar.com/2014/05/Diagrama-de-Flujo-y-Pseudocodigo-para-Hallar-el-Maximo-Comun-Divisor.html, by a blogger called Andrés Mauricio Barragán Sarmiento “El Javatar”.

Thanks to this flow diagram I was able to write my code:gcdgcd_run

And that’s it! ❤

One thought on “Quiz #11 pt. 2

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