Skip to content

Commit d05434d

Browse files
committed
Reverse the Words
1 parent 41c5eca commit d05434d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Programs/P69_ReverseWords.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Author: OMKAR PATHAK
2+
3+
# Python program to reverse the words
4+
5+
userInput = input()
6+
userInput = userInput.split()
7+
8+
print(' '.join(userInput[::-1]))
9+
10+
# OUTPUT:
11+
# Computer Science
12+
# Science Computer

0 commit comments

Comments
 (0)