Why is it that if input 1, line 1 isn't deleted in a.txt?
x = open('a.txt','r')
l = []
q = 0
for line in x:
l.append(str(line))
b = "".join(l)
print b
a = raw_input("Which line do you want to delete?: ")
l[int(a)] = ""
x.close()
x = open('a.txt','w')
x.write(b)
x.close()