print("Sistema de votación")
print("Candidatos:")
print("1. Candidato A")
print("2. Candidato B")
print("3. Candidato C")

votos_a=0
votos_b=0
votos_c=0

for i in range(1, 11):
    voto=int(input(f"Ingrese el voto #{i} (1, 2 o 3): "))
    
    if voto == 1:
        votos_a += 1
    elif voto == 2:
        votos_b += 1
    elif voto == 3:
        votos_c += 1
    else:
        print("Voto inválido, no será contado.")

print("Resultado final:")
print(f"Candidato A: {votos_a} votos")
print(f"Candidato B: {votos_b} votos")
print(f"Candidato C: {votos_c} votos")

Embed on website

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