This file contains 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
w:"I"$first .z.x | |
c:{[w] | |
warehouse:w*9; | |
stock:100000*18; | |
item:100000*5; | |
region:5*3; | |
supplier:10000*7; | |
nation:25*4; | |
orderline:w*300000*10; | |
neworder:w*9000*3; |
This file contains 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 main(): | |
# este es la lista vacia | |
temperaturas = [] | |
# el usuario ingresa la cantidad de dias | |
num_dias = int(input(f"¿Cuantos días se van a promediar?: ")) | |
# el ciclo del array | |
for i in range(0, num_dias): | |
temperatura = float(input(f"Ingrese la temperatura del dia {i + 1}: ")) | |
temperaturas.append(temperatura) | |
print(f"\nLas temperaturas son: {temperaturas}") |
OlderNewer