Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. username = input()
  2. command = input().split()
  3.  
  4. while command != "Sign up":
  5. if command[0] == 'Case':
  6. if command[1] == 'lower':
  7. print(username.lower())
  8. elif command[1] == 'upper':
  9. print(username.upper())
  10.  
  11.  
  12.  
  13. elif command[0] == 'Reverse':
  14. start_index = command[1]
  15. end_index = command[2]
  16. command = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement