Created
October 24, 2015 19:47
-
-
Save popey456963/b75f673f64b4edf87c18 to your computer and use it in GitHub Desktop.
Minifying CDX
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
n = int(input()) | |
a = [] | |
for i in range(n): | |
a.append(input()) | |
b = "".join(a) | |
c = b.split("'") | |
data = "" | |
for key,val in enumerate(c): | |
if key % 2 == 0: | |
data+="".join(val.split()) | |
else: | |
data+="'" + val + "'" | |
print(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh well.