Help with Python programming (Learner)
Go to solution
Solved by Glenwing,
Well, figure out how many years they have left based on what grade they are in. 10th grade, 2 more years. 8th grade, 4 more years. You graduate at grade 12, so the years-left is your distance from 12. So, 12 minus current grade. Then add that to the current year.
print('You will finish in', (b + (12 - a)))

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now