Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/python
  2. """print words in all lower, then print words with upper case characters"""
  3. user="please enter A string Beat"
  4. words = user.strip().split()
  5. for word in words:
  6.         if word.islower():
  7.            print word
  8. print "----------"
  9. for word in words:
  10.         if word.isupper():
  11.            print (word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement