!esrever gnirtS
Assignment #0 String reverse
Problem
Write a Python program that can reverse a string. Your program should take a string as input and return the reversed string.
Input specification
A single string will be given, without any leading or trailing whitespace.
Output specification
The same string, reversed.
Sample 0
<< in
Hanyang University
>> out
ytisrevinU gnaynaH
Sample 1
<< in
Hello, World!
>> out
!dlroW ,olleH
코멘트
Hint: