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.
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.