Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Alan Turing --> funciones computables: una operacion matematica que
- puede ser resuelta por una màquina -> computadora
- Lenguaje de programacion Turing completo: aquel que puede programar cualquier
- función computable
- Teorema: para ser Turing completo, un lenguaje debe tener mìnimamente 3
- estructuras logicas:
- 1 condicional: if
- 1 bucle definido for
- 1 bucle indefinido while
- # condicional:
- # Script que pide una edad y responde si es mayor
- edad = int(input("Ingrese su edad: "))
- if edad >= 18:
- print("Usted ya es mayor de edad")
- print("Felicidades")
- else:
- print("No es mayor de edad aun...")
- print("Lastima...")
- print("Adios...")
- """
- # Script que pide un nota y devuelve el estado de aprobación
- # 0 a 3 insuficiente
- # 4: regular
- # 5 y 6 bien
- # 7 8 9 muy bien
- # 10 sobresaliente
- nota = int(input("Ingrese su nota (entre 0 y 10): "))
- if 0<= nota < 4:
- print("Insuficiente")
- elif nota == 4:
- print("Regular")
- elif 5<= nota <=6:
- print("Bien")
- elif 7<= nota <=9:
- print("Muy bien")
- elif nota == 10:
- print("Sobresaliente")
- else:
- print("Error. La nota debe estar entre 0 y 10")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement