Skip to content

Instantly share code, notes, and snippets.

@jabooticaba
Created April 5, 2021 09:07
Show Gist options
  • Save jabooticaba/b3689ddef4f0a33eba52fb0888cb4a07 to your computer and use it in GitHub Desktop.
Save jabooticaba/b3689ddef4f0a33eba52fb0888cb4a07 to your computer and use it in GitHub Desktop.
12.7.3 exersice
per_cent = {'ТКБ': 5.6, 'СКБ': 5.9, 'ВТБ': 4.28, 'СБЕР': 4.0}
money = int(input('Введите сумму: '))
# Вычисление процента от введённого числа для каждого значения словаря, конвертация в список целочисленных значений
s = list(map(int, map(lambda x: money / 100 * x, per_cent.values())))
print(s)
print(f'Максимальная сумма, которую вы можете заработать — {max(s)}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment