Calculate the year in which the user will be 100 years old.
Current age? 10
2110
- The function uses
age
as a parameter. Decide how you will get from the current age to they year they will be 100. - Write the code inside the function
- Test with the print statement provided
- Comment out the print statement and add the code as prompted to get the user input
- Run your program to test it. Does is work as expected?
- Run pytest
- Edit Configurations --> "+" --> pytest --> OK
- Run pytest
- Did it pass? If so, commit and push to GitHub. If not, why?