Answered step by step
Verified Expert Solution
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
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 hereStep 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