pikabuka

praktikum.yandex.ru_1

Aug 23rd, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. # Профессия Аналитик данных
  2. # Основы Python и анализа данных. Тема 4. Условия и функции
  3. # Урок 2. Простые функции
  4. # Задача №1
  5.  
  6. # Записываем курс в переменной rubles_for_dollar
  7. # (англ. rubles for dollar, "рублей за доллар").
  8. rubles_for_dollar = 67.01
  9.  
  10. # < напишите код здесь >
  11. def print_budget_in_rubles(budget_in_dollars):
  12. budget_in_rubles = budget_in_dollars * rubles_for_dollar
  13. print('Бюджет: {:.2f} млн ₽'.format(budget_in_rubles))
  14.  
  15. print('Титаник')
  16. print_budget_in_rubles(200.0)
  17. print()
  18. print('Гладиатор')
  19. print_budget_in_rubles(103.0)
Advertisement
Add Comment
Please, Sign In to add comment