print('Hello world!')
positivos = []
negativos = []
ceros = 0

for i in range(10):
    num = int(input(f"\nIngresa el número {i+1}: "))
    if num > 0:
        positivos.append(num)
    elif num < 0:
        negativos.append(num)
    else:
        ceros += 1

#sumar negativos
suma_negativos = sum(negativos)

# promedio
if len(positivos) > 0:
    promedio_positivos = sum(positivos) / len(positivos)
else:
    promedio_positivos = 0

print("\nresultados")
print("Suma de negativos:", suma_negativos)
print("Promedio de positivos:", promedio_positivos)
print("Cantidad de ceros:", ceros)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: