From 04158915198c7d5c3b86b663711baee6196f8873 Mon Sep 17 00:00:00 2001 From: SohamDey570 <104816597+SohamDey570@users.noreply.github.com> Date: Thu, 27 Oct 2022 09:39:24 +0530 Subject: [PATCH] Add files via upload --- Basic Python Pratice Program/reverse_string.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Basic Python Pratice Program/reverse_string.py diff --git a/Basic Python Pratice Program/reverse_string.py b/Basic Python Pratice Program/reverse_string.py new file mode 100644 index 0000000..530f4c1 --- /dev/null +++ b/Basic Python Pratice Program/reverse_string.py @@ -0,0 +1,4 @@ +st = input("Enter a String: ") +lt = list(st.split(" ")) +for x in reversed(lt): + print(x, end=' ')