Answer:
The function is as follows:
def number_of_pennies(dollars,pennies=0):
return dollars*100+pennies
Step-by-step explanation:
This defines the function
def number_of_pennies(dollars,pennies=0):
This returns the number of pennies
return dollars*100+pennies
Note that, if the number of pennies is not passed to the function, the function takes it as 0