Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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\Examl\test1-2.py banana, kiwi,watermelon, grape, potato, tomato, rice,rain,water 8 There were only one word longer than 8 : ['watermelon']
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started