At the beginning it was hard for me to understand what the code suposed to do.

When I understood everyhing easier, everything works with the formula. here’s my code:

https://github.com/lulisgarciap/wsq11/blob/master/wsq14.py

wsq14

CC BY 4.0 #wsq14 by Lourdes García is licensed under a Creative Commons Attribution 4.0 International License.