I created v1 of the python code for problem 1. It is untested.
I fixed the incorrect variable creation in v1. This fixed one of the error generated by the code.
I fixed the erroneous print message and made it much simpler, now printing just the value instead of a sentence.