Answer:
words = ['is', 'NLP', 'fun', '?']
tmp = words[1]
words[1] = words[0]
words[0] = tmp
words[3] = '!'
print(words)
Step-by-step explanation:
- Create the list
- Assign the new values using tmp variable
- Print the result
Since tuples in Python are unchangeable, you cannot transform the list using tuple assignment.