STUDY/Algorithm

[프로그래머스] LEVEL1 핸드폰 번호 가리기,python3

sinawi95 2019. 10. 19. 16:01
728x90

def solution(phone_number):
    len_pn=len(phone_number)-4
    answer = '*'*len_pn+phone_number[-4:]
    return answer

 

so easy ㅋㅋ