Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #Prompt the user to type a line
  2. print('The robots are invading (your written work)! Robots are sneaking into your text\nfiles.')
  3.  
  4. print('')
  5.  
  6. line= input('Type a line to see if there are any robots in your text: ')
  7.  
  8. print('')
  9.  
  10. if str(line.upper()) == "ROBOT":
  11. if line.isupper() == True:
  12. print('There is a big robot in the line.')
  13. if line.islower() == True:
  14. print('There is a small robot in the line.')
  15. if line.isupper() == False and line.islower() == False:
  16. print('There is a medium sized robot in the line')
  17.  
  18. else:
  19. print('There is no robot in this line')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement