Question: use while loop please Create a Python function called productOfPowersOf10which takes two arguments, both of which are non-negative integers. For purposes of this problem, let's
use while loop please
Create a Python function called productOfPowersOf10which takes two arguments, both of which are non-negative integers. For purposes of this problem, let's call the first argument exp1and thesecond argument exp2. Your function should compute and return(not print) the product of all powers of 10 from 10exp1to 10exp2. Here are some examples of how your function should behave:
>>> productOfPowersOf10(0,0)
1
>>> productOfPowersOf10(1,1)
10
>
>> productOfPowersOf10(1,2)
1000
>>> productOfPowersOf10(1,3)
1000000
>>> productOfPowersOf10(1,4)
10000000000
>>> productOfPowersOf10(2,4)
1000000000
>>> productOfPowersOf10(3,9)
1000000000000000000000000000000000000000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
