Share your repls and programming experiences

← Back to all posts
Saving for a home deposit? Let Python help!
JayShepherd (0)

Hi all, here is a short piece of Python 3 code that can be super helpful to someone that is saving for a home deposit.

Take user input via the CLI to determine base variables.
The function returns a function call with user inputs as


The function that takes the values of the main function,
Calculate monthly salary
Calculate deposit
Calculate Salary savings
Combine to create total savings


Returns the number

of months needed to save for a deposit, based on 10% of salary put aside and 5% return on savings per month.

Hope you enjoy, happy to start a team to work on this more!