You are holding an egg-balancing race in which each contestant will need one hard-boiled egg. You want to know if you have bought enough dozens of eggs for all the contestants who have registered for the race. Write a Python program that will take the number of DOZENS of eggs as a parameter and that will return the number of INDIVIDUAL eggs as its output.
Expert Answer
PYTHON CODE DEVELOPED IN PYTHON 2.7.13 IDLE
# Function to calculate individual eggs count
def IndividualEggs(DOZENS):
total = 12 * DOZENS
return total
dozens = input(“Input total dozens of egg: “) # Inputting dozens of eggs from user
print (‘Total individual eggs: ‘+str(IndividualEggs(dozens)))
CODE SCREENSHOT
OUTPUT