Skip to content

Change - #1

Open
jamiemalaney wants to merge 1 commit into
new2code:mainfrom
jamiemalaney:edits
Open

jamiemalaney wants to merge 1 commit into
new2code:mainfrom
jamiemalaney:edits

Conversation

@jamiemalaney

Copy link
Copy Markdown

No description provided.

# Loop from 1 to number (inclusive) and multiply factorial by each number
for i in range(1, number + 1):
factorial *= factorial * i
factorial *= i

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f

factorial *= factorial * i
factorial *= i

print(f"The factorial of {number} is {factorial}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants