Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Programa que pide un nùmero de mes 1 al 12 y devuelve el cuatrimestre
- Ej:
- >>> Ingrese un nro de mes (1 enero, 2 febrero, .... etc): 5
- >>> Segundo cuatrimestre
- """
- while True:
- #############################################################
- numero_mes = int(input("Ingrese un nro de mes (1 enero, 2 febrero, .... etc): "))
- if 0 < numero_mes < 5:
- print("Primer cuatrimestre")
- print("Buenisimo")
- a = 2 + 3.5
- elif 4 < numero_mes < 9:
- print("Segundo cuatrimestre")
- elif 8 < numero_mes < 13:
- print("Tercer cuatrimestre")
- else:
- print("error")
- ###############################################################
- opcion = input("Presione cualquier tecla para continuar (o '1' para salir): ")
- if opcion == "1":
- print("Gracias por usar este programa...")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement