Skip to content
Snippets Groups Projects
Commit 06007efc authored by Mijael Yerson Sanchez Huamanyauri's avatar Mijael Yerson Sanchez Huamanyauri
Browse files

new file from Jupyterhub

parent fd06e28a
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
year = [1994, 1999, 1997, 2001, 2000, 1983, 1989, 1998]
edad = [(2021 - x) for x in year if (x%2 == 0)]
print (edad)
```
%% Output
[27, 21, 23]
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
import numpy as np
numero1 = input("Ingrese un numero")
inverse_numero = []
for i in reversed(numero1):
inverse_numero.append(i)
numero2 = "".join(inverse_numero)
suma = int(numero1) + int(numero2)
print(suma)
inverse_suma = []
for i in reversed(str(suma)):
inverse_numero.append(i)
suma_inv = "".join(inverse_numero)
suma = int(numero1) + int(numero2)
print(suma)
if suma_inv == str(suma):
print("Proceso fializado")
else:
print("Ingrese otro número")
```
%% Output
Ingrese un numero515
1030
1030
Ingrese otro número
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment