Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

4. Who will get these goods and services?

Answered: 1 week ago