How do you check if a string in python (say "q") is uppercase or lower case?
The "isupper" function.
Not sure about that but if u want the user to enter a word in all lower or all upper case then add .upper() or .lower() to the end of your variable for example:
name = input ("Whats your name?").upper()
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
The "isupper" function.
Not sure about that but if u want the user to enter a word in all lower or all upper case then add .upper() or .lower() to the end of your variable for example:
name = input ("Whats your name?").upper()