Shahrayar123 / Python-Projects

Basic Python projects, good first issue
272 stars 274 forks source link

Refactored user input handling to use .lower() function for case insensitivity #197

Open UmerShehzad63 opened 2 months ago

UmerShehzad63 commented 2 months ago

This commit shortens and improves the user input handling in the Rock Paper Scissors game by replacing manual checks for both uppercase and lowercase inputs with the .lower() function for case insensitivity. Previously, the code contained lengthy checks for both uppercase and lowercase inputs, which increased complexity and reduced readability. With this update, users can input their choices in any case, and the program will handle it uniformly, resulting in cleaner and more concise code.