Respuesta :

In python:

def doublePenny(starting_penny, days):

   i = 0

   while i < days:

       starting_penny = starting_penny * 2

       i += 1

   return starting_penny

We can test this function with the following code:

print(doublePenny(1,10)). The output will be 1024

I hope this helps!

RELAXING NOICE
Relax