Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # plantilla general para un script SIN MENU
- #
- while True:
- #######################
- a = int(input("Ingrese un entero: "))
- b = int(input("Ingrese otro entero: "))
- print(f"La suma de {a} y {b} es {a+b}")
- #######################
- 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