How to convert string to lowercase in Python? - Stack Overflow

How to convert string to lowercase in Python? - Stack Overflow

瀏覽:403
日期:2026-04-21
You can do what Peter said, or if you want the user to input something you could do this: raw_input('Type Something').lower() It will then automatically convert the thing they typed into lowercase. :) Note: raw_input was renamed to input in Python 3.x and...看更多