+ 1

Help with string.lower ..what does it return

import string recive a char...here 'a',ie ch='al string.find(string.lower,ch)!=-1

22nd Nov 2016, 2:09 PM
αѕнωιи мσнαи
αѕнωιи мσнαи - avatar
2 Answers
+ 2
It returns the lower case string. For instance: >>> 'ABCgdefXYZ'.lower() 'abcgdefxyz' The code you posted checks if the string contains ch.
22nd Nov 2016, 4:21 PM
donkeyhot
donkeyhot - avatar
+ 1
important
22nd Nov 2016, 2:09 PM
αѕнωιи мσнαи
αѕнωιи мσнαи - avatar