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
import numpy as np | |
import tensorflow as tf | |
import tflearn | |
import tflearn.datasets.mnist as mnist | |
trainX, trainY, testX, testY = mnist.load_data (one_hot=True) | |
entrada=784 | |
capa1=128 | |
capa2=128 | |
clases=10 |
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
CLARO = ('abcdefghijklmnopqrstuvwwxyz') | |
simbolo= ('b') | |
indice = CLARO.index (simbolo) #ubicación de simbolo en la cadena de texto de CLARO | |
print (simbolo, '=', indice) |
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
for letra in 'Carol Reyes': | |
print ('La letra es ' + letra) |
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
#CIFRADO atbash | |
# alfabetos empleados | |
CLARO = 'abcdefghijklmnopqrstuvwxyz ' | |
CIFRADO = 'ZYXWVUTSRQPONMLKJIHGFEDCBA ' | |
# Almacena las formas de cifradas y descifradas | |
salida = '' | |
# Guarda el texto introducido |