관리 메뉴

솜씨좋은장씨

[leetCode] 709. To Lower Case (Python) 본문

Programming/코딩 1일 1문제

[leetCode] 709. To Lower Case (Python)

솜씨좋은장씨 2020. 8. 15. 19:33
728x90
반응형

Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

 

Example 1:

Input: "Hello"
Output: "hello"

Example 2:

Input: "here"
Output: "here"

Example 3:

Input: "LOVELY"
Output: "lovely"

Solution

class Solution:
    def toLowerCase(self, string: str) -> str:
        return string.lower()

 

 

SOMJANG/CODINGTEST_PRACTICE

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

 

Comments