Advertisement
SimeonTs

SUPyF2 D.Types and Vars Lab - 04. Convert Meters to Centimet

Sep 26th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. """
  2. Data Types and Variables - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1721#3
  4. Video: https://www.youtube.com/watch?v=i2vHypjJkB4
  5.  
  6. SUPyF2 D.Types and Vars Lab - 04. Convert Meters to Centimeters
  7.  
  8. Problem:
  9. You will be given an integer that will be distance in meters.
  10. Write a program that converts meters to kilometers formatted to the second decimal point.
  11.  
  12. Examples:
  13. Input:  Output:
  14. 1852    1.85
  15. 798     0.80
  16. """
  17. print(f"{(int(input()) / 1000):.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement