본문 바로가기
코딩테스트/Python

프로그래머스 스쿨 - 문자열 앞의 n글자(Python)

by 보안매크로 2023. 8. 28.
728x90
def solution(my_string, n):
    answer = my_string[0:n]
    return answer
728x90