We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22daf74 commit 603d512Copy full SHA for 603d512
String_reverse.py
@@ -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