Skip to content

Commit 44ab0a3

Browse files
Add my_script.py to fix issue #994
1 parent b3b1165 commit 44ab0a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

my_script.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)