Q34.Reverse a sentence based on words. The ith word from the left in the input sentence is the ith word from the end in the output sentence.
Consider the following example:
```
sentence = "I know how to code in Python"
modified_sentence = "Python in code to how know I"
```
Choose all the options that accept a sentence as input and print the modified sentence.
Save
Check
Details
Q34
16 Oct 2022
Q34.Reverse a sentence based on words. The ith word from the left in the input sentence is the ith word from the end in the output sentence.
Consider the following example:
```
sentence = "I know how to code in Python"
modified_sentence = "Python in code to how know I"
```
Choose all the options that accept a sentence as input and print the modified sentence.