Created
April 5, 2021 09:07
-
-
Save jabooticaba/b3689ddef4f0a33eba52fb0888cb4a07 to your computer and use it in GitHub Desktop.
12.7.3 exersice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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