Question: Python Code 3.9.1 Version 3: show all the related odd number between 1-11, and also the power of 2&3. def main(): #show 1-11, all the
Python Code 3.9.1 Version
3: show all the related odd number between 1-11, and also the power of 2&3.
def main():
#show 1-11, all the related odd number, and also the power of 2&3
maxVal = ________________________
for x in range(1, maxVal+1): #include [1, 11), have 1, no 11
if(x % 2 == _____________________ ):
print(repr(x).rjust(2), repr(x*x).rjust(3), repr(x*x*x).rjust(4))
main()
Fill in the above empty place, and the debug this code. After you get this program to successfully run, capture its output and then close it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
