chickens=int(input("Ingrese la cantidad de gallinas "))
cows=int(input("Ingrese la cantidad de vacas "))
pigs=int(input("Ingrese la cantidad de cerdos "))

patas_gallinas=chickens*2
patas_vacas=cows*4
patas_cerdos=pigs*4

total=patas_gallinas+patas_vacas+patas_cerdos

print(f"El total de patas de todos los animales es {total}")

Embed on website

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