+ 1

How to make lowercase letter equal to uppercase letter?

Example: "m"== "M" True

5th Jan 2017, 4:16 PM
Seng Thai
Seng Thai - avatar
4 ответов
+ 3
letter=(input ()).upper if you wanted it lowerkeys : letter=(input()).lower
9th Jan 2017, 2:59 AM
ramzi
ramzi - avatar
+ 2
Scissors and superglue? Also: >>> help("str.upper") Help on method_descriptor in str: str.upper = upper(...) S.upper() -> str Return a copy of S converted to uppercase. You may use function results in tests, so this is a valid start: if "m".upper() == ...
5th Jan 2017, 4:29 PM
Kirk Schafer
Kirk Schafer - avatar
0
small = 'm' big = 'M' if(small.upper() == big): return true // or something else
5th Jan 2017, 4:28 PM
Jonas Geiler
Jonas Geiler - avatar
0
thanks guys
9th Jan 2017, 3:05 AM
Seng Thai
Seng Thai - avatar