Answered step by step
Verified Expert Solution
Question
1 Approved Answer
intro python/data programming Expected output is: 10! = 3628800 9! = 362880 ... (same for 8 thru 3) 2! = 2 1! = 1 current
intro python/data programming
num_lines = 10 for j in range(num_lines, , -1): factorial = 1 for i in range(1, j+1): factorial = factorial * 1 print(j. "! : ", factorial) Expected output is:
10! = 3628800
9! = 362880
... (same for 8 thru 3)
2! = 2
1! = 1
current output is:
1! = 1
my code:
any idea where/what the problem is and how to fix it?
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