Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- Pedir una temperatura por pantalla (en ºC) y mostrarla en ºF.
- Investigar como convertirla
- ºF = ºC * 1.8 + 32
- """
- temp = int(input("Ingrese una temperatura en ºC: "))
- print(f"{temp}ºC equivalen a {temp * 1.8 + 32}ºF")
- """
- 2) Pedir un nombre de usuario (por ejemplo, juan lopez), un server
- (gmail.com) y mostrar su cuenta de email (juanlopez@gmail.com)
- PISTA: pedir nombre y apellido por separado
- """
- nombre = input("Ingrese el nombre: ")
- apellido = input("Ingrese el apellido: ")
- server = input("Ingrese el servidor: ")
- email = f"{nombre}.{apellido}@{server}.com"
- print(f"Su cuenta de email es {email}")
- """
- 3) Pedir tres numeros por pantalla y calcular su promedio
- """
- a = int(input("Ingrese un nro: "))
- b = int(input("Ingrese un nro: "))
- c = int(input("Ingrese un nro: "))
- print(f"Promedio: {(a+b+c) / 3}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement