Our markov chain should generate ‘\n’ as well in the output? What i intend to ask is whether the submission file should have ‘\n’ or actual lines separated.
Newline character
Hey @ambika11, no need to do anything, just write the complete text in .txt file directly. like this
with open(‘myfile.txt’,‘w’) as file:
file.write(text)
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.