codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
key_words={ 'state':'dead', 'animal':'parrot', } partial_story = "It's a %(state)s %(animal)s." full_story = partial_story % key_words print full_story for word in full_story.split(): print word.upper(), len(word), print [c for c in word if c.lower() in "aeiou"]
Private
[
?
]
Run code