Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Prompt the user to type a line
- print('The robots are invading (your written work)! Robots are sneaking into your text\nfiles.')
- print('')
- line= input('Type a line to see if there are any robots in your text: ')
- print('')
- if str(line.upper()) == "ROBOT":
- if line.isupper() == True:
- print('There is a big robot in the line.')
- if line.islower() == True:
- print('There is a small robot in the line.')
- if line.isupper() == False and line.islower() == False:
- print('There is a medium sized robot in the line')
- else:
- print('There is no robot in this line')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement