This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Animal: | |
| def __init__(self, nombre, edad): | |
| self.nombre = nombre | |
| self.edad = edad | |
| def comer(self): | |
| print(f'{self.nombre} esta comiendo') | |
| def dormir(self): | |
| print(f'{self.nombre} esta durmiendo') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from abc import ABC, abstractmethod | |
| from mixinMortalidad import MixinMortalidad | |
| class Animal(ABC, MixinMortalidad): | |
| def __init__(self, nombre="", edad=1): | |
| self.nombre = nombre | |
| self.edad = edad | |
| @abstractmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| big-o-notation.py: | |
| Version: 0.2 | |
| Python 3.6 | |
| Date created: 22/03/2017 | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Cuando se requiere almacenar varios valores en una sola variable, se puede | |
| utilizar un arreglo. | |
| Un arreglo es una estructura de datos que permite almacenar varios valores | |
| de un mismo tipo en una sola variable, a través de un índice que representa | |
| la posición de cada valor. | |
| Comúnmente, los arreglos se utilizan para almacenar colecciones de datos | |
| homogéneos, es decir, del mismo tipo y tamaño fijo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --pico-font-family-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | |
| --pico-font-family-sans-serif: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, var(--pico-font-family-emoji); | |
| --pico-font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace, var(--pico-font-family-emoji); | |
| --pico-font-family: var(--pico-font-family-sans-serif); | |
| --pico-line-height: 1.5; | |
| --pico-font-weight: 400; | |
| --pico-font-size: 100%; | |
| --pico-text-underline-offset: 0.1rem; | |
| --pico-border-radius: 0.25rem; |
OlderNewer