Write a function which receives a string containing text


Problem

Using the "random" module, write a function ("random_words") which receives a string containing text to analyze, and generates a random sample of 'n' words from Frankenstein (assume that a space (' ') is used to separate words). Your word list should be of 100 distinct (non-repeating), lower case words, and you may want to use the functionality provided by the "set" data type to help with this.

Request for Solution File

Ask an Expert for Answer!!
Other Management: Write a function which receives a string containing text
Reference No:- TGS03251538

Expected delivery within 24 Hours