12311k

Untitled

Feb 8th, 2020
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def print_budget_in_rubles(dollars):
  2. rubles = dollars * rubles_for_dollar
  3. print('Бюджет: {:.2f} млн ₽'.format(rubles))
  4. # (англ. rubles for dollar, "рублей за доллар").
  5. rubles_for_dollar = 67.01
  6.  
  7.  
  8. print('Титаник')
  9. print_budget_in_rubles(200.0)
  10. print()
  11. print('Гладиатор')
  12. print_budget_in_rubles(103.0)
Advertisement
Add Comment
Please, Sign In to add comment