Question d’entretien chez Infosys

How would you write to a file in Python?