-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add program to calculate factorial in Python #53
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the significance of 2nd commit?
programs/factorial.py
Outdated
else: | ||
for i in range(1,num + 1): | ||
factorial = factorial*i | ||
print("The factorial of",num,"is",factorial) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after ","
programs/factorial.py
Outdated
# Python program to find the factorial of a number provided by the user. | ||
|
||
# change the value for a different result | ||
num = 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hard coded num
solves issue#41.
kindly review it now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Program is to be added in language folder not programs/
Resolve issue #41