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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <module type="JAVA_MODULE" version="4"> | |
| <component name="NewModuleRootManager" inherit-compiler-output="true"> | |
| <exclude-output /> | |
| <content url="file://$MODULE_DIR$" /> | |
| <orderEntry type="inheritedJdk" /> | |
| <orderEntry type="sourceFolder" forTests="false" /> | |
| </component> | |
| </module> |
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 requests | |
| import json | |
| from pprint import pprint | |
| import urllib3 | |
| requests.packages.urllib3.disable_warnings() | |
| url='https://api.sunrise-sunset.org/json?lat=50.85045&lng=-4.34878' | |
| ticket = "ST-265-gPXbe9e2XXLvsvqJkdiB-cas" |
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
| Nombres = ["Thiago", "Pedro","Felipe","Pau","Ariane","Giovana","Luci","Jose"] | |
| print("\n Nombres en la lista: " + str(Nombres)) | |
| Selected = [] | |
| for nombre in Nombres: | |
| if "a" in nombre: | |
| Selected.append(nombre) | |
| print("\n Los nombres que contienen una 'a' son: " + str(Selected) + "\n") |
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 os | |
| def menu(): | |
| os.system('clear') # ejeculta comando para lipiar la patalla. | |
| print("\nQue operación deseas realizar?: ") | |
| print("") | |
| print("1 - Somar") | |
| print("2 - Restar") | |
| print("3 - Multiplicar") |
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
| num = int(input("Digite un numero: ")) | |
| if num < 20: | |
| print("El numero " + str(num) + " es menor que 20!") | |
| elif num >= 20 and num <= 39: | |
| print("El numero " + str(num) + " es igual o mayor que 20 y menor que 40!") | |
| elif num >= 40 and num <= 59: | |
| print("El numero " + str(num) + " es igual o mayor que 40 y menor que 60!") |
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
| strList=["str1", "str2", "str3", "str4", "str5"] | |
| intrList=[10, 20, 30, 40, 50] | |
| dblList=[1.5, 2.5, 3.5, 4.5, 5.5] | |
| mixList = [str(strList[3]) + ", " + str(intrList[4]) + (", ") + str(dblList[2])] | |
| print("\n Lista de strings: " + str(strList) + "\n Lista de integer: " + str(intrList) + "\n Lista de floats: " + str(dblList)) | |
| print("\n Lista de string, integer y float: " + str(mixList)) |
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
| nombre= input("Digite seu nome: ") | |
| apellido1= input("Digite el primer apellido: ") | |
| apellido2= input("Digite el segundo apellido: ") | |
| idad= input("Digite la idade: ") | |
| telefono= input("Digite el telefono: ") | |
| ciudad= input("Digite la ciudad: ") | |
| print("\nEl actor " + nombre + " " + apellido1 + " " + apellido2 + "\nAl dia de hoy tiene " + idad + " años" + "\nSu telefono es: " + telefono + "\nEl vive en " + ciudad) |
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
| print("Hello Word!") |