you are a farmer entering a leg competition.
the aim of the competition is to see which farmer has the most legs amounst their animals
you are given three variables:
cow,sheep,chicken
you must use these variables to work out how many legs the farmer has in total
cow: 4legs
sheep: 4legs
chicken: 2legs
count_legs(2,3,10) -> 40
def countlegs(cow,sheep,chick):
return cow*4 + sheep*4 +chick*2
run = countlegs(2,3,4)
print(run)
print(countlegs(4,5,6))