with open('data.txt', 'r') as file: data = file.read().replace(' ', '')
data = open('data.txt').read()