Question: 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

 in python The robots are invading (your written work)! Robots are

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

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!