Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python The robots are invading (your written work)! Robots are sneaking into your text files. Write a program that reads in a line of

image text in transcribed

in python

The robots are invading (your written work)! Robots are sneaking into your text files. Write a program that reads in a line of text from the user and prints out whether there is a robot in the line of text. If the word robot occurs in all lowercase letters in the line, If the word ROBOT occurs in all uppercase letters in the line, If the word robot occurs in the line in any combination of upper print out: There is a small robot in the line. print out: There is a big robot in the line. and lowercase letters, print out: There is a medium sized robot in the line. Otherwise, if none of these conditions hold true, you should print out: No robots here. Your program should work like this: Line: I'm baking chocolate robot brownies There is a small robot in the line. Here is another example: Line: Look at the roBOt down the road There is a medium sized robot in the line. If the letters robot occur in the line, but as part of a bigger word, you should not report any robots found. Line: There's a strobotron at the concert. No robots here

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago