SimeonTs

SUPyF2 D.Types and Vars Lab - 05. Pounds to Dollars

Sep 26th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. """
  2. Data Types and Variables - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1721#4
  4. Video: https://www.youtube.com/watch?v=i2vHypjJkB4
  5.  
  6. SUPyF2 D.Types and Vars Lab - 05. Pounds to Dollars
  7.  
  8. Problem:
  9. Write a program that converts British pounds to US dollars formatted to 3th decimal point.
  10. 1 British Pound = 1.31 Dollars
  11.  
  12. Example:
  13. Input:  Output:
  14. 80      104.800
  15. 39      51.090
  16. """
  17. print(f"{(int(input()) * 1.31):.3f}")
Add Comment
Please, Sign In to add comment