Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- # Script que pide dos numeros por teclado e imprime su producto y su suma
- # Ejemplo (los nros pueden ser enteros o float, como uds quieran)
- # >>> Ingrese un numero: 1
- # >>> Ingrese otro numero: 2
- # >>> La suma entre 1 y 2 es 3 y el producto 2
- a = float(input("Ingrese un numero: "))
- b = float(input("Ingrese otro numero: "))
- print(f"La suma entre {a} y {b} es {a+b} y el producto {a*b}")
- """
- # Script que convierte una temp de ºF a ºC
- temp = float(input("Ingrese la temperatura (en ºF): "))
- print(f"{temp}ºF equivalen a {(temp - 32) / 1.8:.1f}ºC")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement