Codio question help

This post was flagged by the community and is temporarily hidden.

Please note the site's homework policy:

Also this site is for R, rather than python.