LeetCode — 709. To Lower Case

Jia-Hua Cheng
Newbie programmer Diary
1 min readNov 19, 2019

Method1 : use built-in function in python

We can simply use built-in function instead of coding it by ourselves

return str.lower()

Method2 : (challenge for myself, try to reduce dummy variable and line)

--

--