Skip to content

Instantly share code, notes, and snippets.

@219053
Created July 18, 2023 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 219053/ccfda86eecd6231c8092ae77a966fbb9 to your computer and use it in GitHub Desktop.
Save 219053/ccfda86eecd6231c8092ae77a966fbb9 to your computer and use it in GitHub Desktop.
per_cent = {'ТКБ': 5.6, 'СКБ': 5.9, 'ВТБ': 4.28, 'СБЕР': 4.0}
money = int(input("Размер вклада"))
deposit = []
for key in per_cent.keys():
print('Процентная ставка->', per_cent[key])
deposit.append(per_cent[key] * money / 100)
maximum = max(deposit)
print( "Прибыль в год =", sorted(deposit))
print("Максимальная сумма, которую вы можете заработать =", (maximum))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment