We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b1165 commit 44ab0a3Copy full SHA for 44ab0a3
my_script.py
@@ -0,0 +1,7 @@
1
+# reverse_string.py
2
+def reverse_string(s):
3
+ return s[::-1]
4
+
5
+if __name__ == "__main__":
6
+ text = input("Enter a string: ")
7
+ print("Reversed:", reverse_string(text))
0 commit comments