Skip to content

Commit 603d512

Browse files
authored
Add files via upload
1 parent 22daf74 commit 603d512

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: String_reverse.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def str_rev(str_in):
2+
'''
3+
This function reverses an entered string
4+
'''
5+
6+
str_rev_out = str_in[::-1]
7+
return str_rev_out
8+
9+
str_in = input("Enter a string to be reversed: ")
10+
print(str_rev(str_in))

0 commit comments

Comments
 (0)