1def printToFile(f, str):
2    print(str, file=f)
3