diff --git a/string_reverse.py b/string_reverse.py new file mode 100644 index 000000000..b496db9c8 --- /dev/null +++ b/string_reverse.py @@ -0,0 +1,3 @@ +s = input("Enter the string to be reversed : ") +result = s[::-1] +print("The reversed string is {}".format(result)) \ No newline at end of file