Skip to content

Conversation

solberg-eric
Copy link

  • Add try/except to catch "ValueError: invalid literal for int() with base 10: '(user input)'" exception.
- Add try/except to catch "ValueError: invalid literal for int() with base 10: '(user input)'" exception.
Add try/catch incase the user does not input a number
print("Sorry, factorial does not exist for negative numbers")
elif num == 0:
print("The factorial of 0 is 1")
elif type(num) !=
Copy link
Member

Choose a reason for hiding this comment

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

I believe you've made a mistake here. Can you modify that and resubmit it again?

@christianbender
Copy link

@poyea I marked this pull request as on hold. Therefore we have a better overview

@github-actions
Copy link

github-actions bot commented Dec 8, 2019

Stale pull request message

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

Labels

3 participants