I have this code which takes lines of text from a github repository and writes it to a local text file. There is no separation between lines on the Github file - it's simply a list of words. When this gets written in the local file, there is an extra blank line between the others. For example,
Online shows:
lions
tigers
bears
The local text file writes:
lions
tigers
bears
How can I have it copy the text from the github file without extra lines?
url = 'https://raw.githubusercontent.com/listofmessages.txt'
Prompt = requests.get(url)
filehandle = open('helloworld.txt', 'w')
filehandle.write(Prompt.text)
filehandle.close()