관리 메뉴

Silver Library (Archived)

To lower case - python 본문

F2. Problem & Solving/Solving

To lower case - python

Ayin Kim 2022. 4. 7. 22:36
반응형

First attempt:

Unless the problem provide number to its array value, use 'method' before start thinking it from low level language. 

class Solution:
    def toLowerCase(self, s: str) -> str:
        ans=""
        for i in s:
            ans += i.lower()
        return ans
        
        
        
    '''
        UpperCase = str(s)
        LowerCase = u
        
        converter = UpperCase < LowerCase
        
        if (Converter < s):
            return u
        else:
            return s
      '''

 

'F2. Problem & Solving > Solving' 카테고리의 다른 글

Two Sum - Note  (0) 2022.03.25
Finally...  (0) 2022.03.17
오랜만의 공개글.  (0) 2022.03.12
Types of algorithm  (0) 2022.02.14
10869, 2588 사칙연산 - Python [특이사항]  (0) 2021.12.26