Skip to content

Instantly share code, notes, and snippets.

@sza-1
Created August 11, 2021 23:42
Show Gist options
  • Select an option

  • Save sza-1/0b6fde49fbf9a3048f1f196b26371b9b to your computer and use it in GitHub Desktop.

Select an option

Save sza-1/0b6fde49fbf9a3048f1f196b26371b9b to your computer and use it in GitHub Desktop.
from decimal import Decimal; x, s, n = Decimal(1000), Decimal(5), 10; print([(x * (1 + s / 100) ** n) for n in range(1, n - 1)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment