Question: Write program that reads a string of words separated by comma and a number from the cmd. Your program should make a list of first

 Write program that reads a string of words separated by comma

Write program that reads a string of words separated by comma and a number from the cmd. Your program should make a list of first three words that are longer than the entered number. If there is not three words longer the entered number, you should display what ever you have as shown below. H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Exam1\test1-2.py banana, kiwi, watermelon, grape, potato, tomato, rice, rain, water 12 Unfortunately, there were not any word longer than 12 H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Exam1\test1-2.py banana, kiwi, watermelon, grape, potato, tomato, rice, rain,water 8 There were only one word longer than 8 : ['watermelon'] H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Exam1\test1-2.py banana, kiwi, watermelon, grape, potato, tomato, rice, rain, water 5 The list of first three words that are longer than 5 : ['banana', 'watermelon', 'potato'] H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Exam1\test1-2.py banana, kiwi, watermelon, grape, potato, tomato, rice,rain, water 4 The list of first three words that are longer than 4 : ['banana', 'watermelon', 'grape'] H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Exam1\test1-2.py banana, kiwi, watermelon, grape, potato, tomato, rice, rain, water 3 The list of first three words that are longer than 3 : ['banana', 'Kiwi', 'watermelon']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!