Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # script que calcula la velocidad promedio de un móvil. Se le pide al
- # usuario la distancia y el tiempo y se calcula la velocidad
- distancia = int(input("Ingrese la distancia recorrida en kms: "))
- tiempo = int(input("Ingrese el tiempo en hs: "))
- velocidad = distancia / tiempo
- print(f"Velocidad: {velocidad} km/h")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement