Snippets tagged “upper”
1 snippet uses this tag.
- How do I do a case-insensitive string comparison?Python
You can convert both strings to lowercase or uppercase (using the lower() or upper() method) before doing the comparison.
1 snippet uses this tag.
You can convert both strings to lowercase or uppercase (using the lower() or upper() method) before doing the comparison.