6. Write a python program to switch the sequence of each word in the noun_list as in the output below.
The output is:
noun_list = ['Python', 'Exercises', 'Free', 'Answer', 'Tutorials', 'Numpy']
Answer: The new noun list after changing sequence: [Different from original noun_list]
Answer:
from random import shuffle noun_list = ['Python', 'Exercises', 'Free', 'Answer', 'Tutorials', 'Numpy'] shuffle(noun_list) print("The new noun list after changing sequence: ", noun_list)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)