Jul-20-2019, 12:55 PM
You seem to be passing the return value of
The code is also quite dense, particularly the
input
to str
in several places (e.g. lines 3 and 20 in the code in the first post). That's unnecessary, since input
already returns a string.The code is also quite dense, particularly the
loanscheme
function.It would be more readable if it were split into smaller functions each doing one specific thing that were then called from loanscheme
. Also, adding blank lines between sections of code even within a function helps readability, much like how you'd use paragraphs in writing to split up different thoughts, etc.