English language is amalgamation of 26 standard characters. The characters are either in upper case or lower case. The words in english are made up from these characters and are categorized into Nouns, Pronouns, Verbs, Adverbs, Adjectives etc. Given a set of words in a text file, write a function WordSpell() that takes a text file as input parameter and returns a list of words that start from a specific spelling. Input data: - A text file named as Words.txt containing more than 1000 words. Output data: - A python list that contains the words starting from specific spelling. Constraints: - - The words should only be string values. If there are any special characters in between the words, your function should omit those special characters. Function should be able to process both upper- and lower-case letters def Wordspell (file, spell): // your code goes here Example: spell - "pre" print (WordSpell (file, spell)) the function should return ['predefined', 'predestination', 'precaution']

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
icon
Related questions
Question
Task 1: WordSpell
English language is amalgamation of 26 standard characters. The characters are either in
upper case or lower case. The words in english are made up from these characters and are
categorized into Nouns, Pronouns, Verbs, Adverbs, Adjectives etc.
Given a set of words in a text file, write a function WordSpell() that takes a text file as
input parameter and returns a list of words that start from a specific spelling.
Input data:
- A text file named as Words.txt containing more than 1000 words.
Output data:
A python list that contains the words starting from specific spelling.
Constraints:
The words should only be string values.
If there are any special characters in between the words, your function should omit
those special characters.
Function should be able to process both upper- and lower-case letters
def Wordspell (file, spell):
// your code goes here
Example:
spell "pre"
print (WordSpell (file, spell))
#the function should return
['predefined', 'predestination', 'precaution']
Transcribed Image Text:Task 1: WordSpell English language is amalgamation of 26 standard characters. The characters are either in upper case or lower case. The words in english are made up from these characters and are categorized into Nouns, Pronouns, Verbs, Adverbs, Adjectives etc. Given a set of words in a text file, write a function WordSpell() that takes a text file as input parameter and returns a list of words that start from a specific spelling. Input data: - A text file named as Words.txt containing more than 1000 words. Output data: A python list that contains the words starting from specific spelling. Constraints: The words should only be string values. If there are any special characters in between the words, your function should omit those special characters. Function should be able to process both upper- and lower-case letters def Wordspell (file, spell): // your code goes here Example: spell "pre" print (WordSpell (file, spell)) #the function should return ['predefined', 'predestination', 'precaution']
Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Stack operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning