Shuffle Words Function

  • Share this:

Code introduction


Define a function that shuffles the order of the words in the input list.


Technology Stack : os, sys, time, json, random

Code Type : Function

Code Difficulty : Intermediate


                
                    
import os
import sys
import time
import json
import random

def shuffle_words(words):
    return words