삽질방지
Reverse String (문자열 뒤집기)
https://github.com/Dev-Guccin
2021. 2. 6. 15:18
a = "abcd"
print(a[::-1]) # 문자열을 하나씩 거꾸로 읽는다
문자열을 거꾸로 읽을때는 [::-1] 하면된다.