Refactor the Balance
Complete redeem(current_points, cost) so it calculates and returns the new points total after redeeming cost points from current_points - without using any global variable. Read the starting points and the cost, each on their own line.
main.py
Loading editor…
Console
Run your code to see output here.