Python-Scripts
Python-Scripts copied to clipboard
Error Handling and User Experience Improvement
PR Title
Enhanced Error Handling and User Experience in Rock Paper Scissors Game
Summary
Implemented error handling and improved user experience in the Rock Paper Scissors game to handle invalid user inputs gracefully.
Description
This pull request introduces enhancements to the Rock Paper Scissors game to improve error handling and user interaction. Previously, the game did not adequately handle invalid user inputs, which could lead to unexpected crashes or errors. The changes made ensure that the game provides clear instructions, validates user inputs effectively, and delivers informative feedback to the user.
The changes are as follows:
- Implemented
try-exceptblocks to handleValueErrorfor invalid user inputs. - Moved input validation logic inside the
tryblock to prompt users for valid inputs without disrupting the game flow. - Updated user prompts and messages to guide users on how to play and handle errors gracefully.
Thank You,
Please resolve merge conflicts @nilkh75