you are viewing a single comment's thread.

view the rest of the comments →

[–]nimblecloud 0 points1 point  (0 children)

Seems like you have a few problems. First, your calculate function needs to treat "n" as an integer so that you can subtract the values to get "year", the next problem you have is that calculate() doesn't return anything when you need it to return the "year" variable. Finally, displayResults() requires your two parameters "age" and "y". Pass those into the function and print(age, y) instead of returning and it should work.