Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Профессия Аналитик данных
- # Основы Python и анализа данных. Тема 4. Условия и функции
- # Урок 2. Простые функции
- # Задача №1
- # Записываем курс в переменной rubles_for_dollar
- # (англ. rubles for dollar, "рублей за доллар").
- rubles_for_dollar = 67.01
- # < напишите код здесь >
- def print_budget_in_rubles(budget_in_dollars):
- budget_in_rubles = budget_in_dollars * rubles_for_dollar
- print('Бюджет: {:.2f} млн ₽'.format(budget_in_rubles))
- print('Титаник')
- print_budget_in_rubles(200.0)
- print()
- print('Гладиатор')
- print_budget_in_rubles(103.0)
Advertisement
Add Comment
Please, Sign In to add comment