Created
October 9, 2011 15:38
-
-
Save iizukak/1273809 to your computer and use it in GitHub Desktop.
Codeforces Beta Round #89 (Div. 2), problem: (A) String Task, 118A, Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string = raw_input().lower() | |
notvowl = ".".join([c for c in string if not c in "aiueoy"]) | |
print "." + notvowl |
can you please explain me the 2nd step?
i am new to python programming and cant understand the 2nd step.
First, the list comprehension part returns a list of consonants, and then the join('.') inserts a dot between all the characters in that list.
why you put [] in the second step
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you please explain me the 2nd step?
i am new to python programming and cant understand the 2nd step.