Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# This requires: | |
# pip install papermill | |
import papermill as pm | |
from glob import glob | |
for nb in glob('*.ipynb'): | |
pm.execute_notebook( | |
input_path=nb, | |
output_path=nb, |
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
def meses_e(meses): | |
m_e = [] | |
for x in range(0,len(meses)): | |
if meses[x].endswith('e'): | |
mes_e = meses[x] | |
m_e.append(mes_e) | |
return m_e | |
meses = [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
intentos = 0 | |
lim_inf, lim_sup = 0, 10 | |
numero = int(input("Ingrese un dígito: ")) | |
busqueda = 5 | |
while True: | |
intentos += 1 | |
if numero == busqueda: | |
break | |
elif numero > busqueda: | |
lim_inf, busqueda = busqueda, (busqueda + lim_sup) // 2 |
NewerOlder