def my_bonus(service_year):
if service_year == 0:
return 0
if service_year == 1:
return 1
else:
return my_bonus(service_year - 1) + my_bonus(service_year - 2)
my_bonus(4)
License
The images and resources in this website are free to use for educational purposes.
1. Right Click Image
2. Click "Save Image As"
2. Click "Save Image As"