# Opening a file
file1 = open('SofthuntFile1.txt', 'w')
multiple_string = ["This is Mango
", "This is Apple
", "This is Banana
"]
single_string = "Hi
"
# Writing a string to file
file1.write(single_string)
# Writing multiple strings at a time
file1.writelines(multiple_string)
# Closing file
file1.close()
# Checking if the data is written to file or not
file1 = open('SofthuntFile1.txt', 'r')
print(file1.read())
file1.close()