Dec-16-2018, 01:52 PM
You are adjusting the annual_salary, but when you do so you need to recalculate the values based on annual_salary (monthly_salary and monthly_saved). Generally changing a value in Python does not change other values based on the first value. This isn't a hard and fast rule, as certain operations with mutable objects (including lists, dictionarys, sets, and user define objects) can be affected. But for immutable objects (including ints, floats, strings, and tuples) changing the value of a variable has no effect on previous calculations based on that variable.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures