In this program, we will take a string as input and reverse words in a string
Steps to solve the program
- Take a string as input.
- First split the string using split() and then reverse the words using reversed().
- Print the output.
Output :
Online Learning Platform