Question
use while loop please Create a Python function called product OfPowersOf 10 which takes two arguments , both of which are non - negative integers
use while loop please
Create a Python function called
product
OfPowersOf
10
which takes
two arguments
,
both
of
which are
non
-
negative integers
. For purposes of this problem, let's call the first argument
exp1
and the
second argument
exp2
. Your function should compute and return
(not print
) the
product of all powers of 10 from 10
exp1
to 10
exp2
.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started