Suppose I have a line:
stroka = input() Input data:
QWERTYUIOPASDFGHJKLZXCVBNM How to make the output all letters become lowercase (small)?
qwertyuiopasdfghjklzxcvbnm Suppose I have a line:
stroka = input() Input data:
QWERTYUIOPASDFGHJKLZXCVBNM How to make the output all letters become lowercase (small)?
qwertyuiopasdfghjklzxcvbnm Use the lower method:
s = 'QWERTYUIOPASDFGHJKLZXCVBNM' print(s.lower()) Result:
qwertyuiopasdfghjklzxcvbnm
.casefold() can be used if you translate lower-case strings for later case-insensitive comparison , see How to compare text in Python? - jfsSource: https://ru.stackoverflow.com/questions/712783/
All Articles