Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- '''
- 1 condicional: if, switch 2 bucles: while, repeat foreach for, do while
- python: if while for
- '''
- a = 2
- while True:
- ####### mi script ###############
- temp = float(input("Ingrese la temp en ºC: "))
- print(f"Temperatura: {temp*1.8+32}ºF")
- ###################################
- opcion = input("Presione cualquier tecla (o '1' para salir): ")
- if opcion == "1":
- print("Gracias por usar este programa...")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement