Python 파이썬 2019. 10. 9. 13:00

문자열을 역순으로 출력하는 프로그램을 구현

 

[결과창]

 

 

[코드]

sentence = str(input())
a=""
print("")
print("역순으로 출력")
print("")
for i in range(len(sentence)):
    a+=sentence[-(i+1)]
print(a)

posted by 스노(Snow)
: