- 1

How to set Python as non case-sensitive?

I mean, only for one script.

18th Oct 2019, 1:02 PM
Gwlanbzh
Gwlanbzh - avatar
3 Respostas
0
Maybe you could make a converter that makes a copy of your code and converts everything in lowercase. This would have been easy with file handling and some string methods, but there are some special cases, such as booleans, none type and error names, that are required to be capitalized. You could make the converter with some knowledge on: ~file handling ~string methods ~regular expressions
18th Oct 2019, 2:01 PM
Seb TheS
Seb TheS - avatar
18th Oct 2019, 2:48 PM
Seb TheS
Seb TheS - avatar
0
Hi. You could make all your inputs in lowercase with input().lower()
18th Oct 2019, 2:50 PM
Dmytro Novak
Dmytro Novak - avatar