All the previous files

This commit is contained in:
bendtherules
2014-02-05 10:44:04 +05:30
commit 12135f9a60
160 changed files with 8827 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
def remove_dup(line):
words=line.split()
final=""
check=words[0]
final+=check
for word in words[1:]:
if word!=check:
final+=" "+word
check=word
answers.append(final)
answers=[]
f=open(r"C:\Users\Abhas_2\Desktop\input(1).txt")
times=input()
for count in range(times):
remove_dup(raw_input())
for answer in answers:
print(answer)