Initial commit of project
This commit is contained in:
commit
fe550f1e01
14 files changed
+325
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
def reverse_string(s: str) -> str:
|
||||
"""Return the reverse of the input string."""
|
||||
return s[::-1]
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
if len(sys.argv) > 1:
|
||||
input_str = sys.argv[1]
|
||||
else:
|
||||
input_str = "Hello, World!"
|
||||
print(reverse_string(input_str))
|
||||
Reference in new issue
Block a user