Answered step by step
Verified Expert Solution
Link Copied!

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
Expected output is:
10! = 3628800
9! = 362880
... (same for 8 thru 3)
2! = 2
1! = 1
current output is:
1! = 1
my code:
image text in transcribed
any idea where/what the problem is and how to fix it?
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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions