So in my Python exercise I must write a program that computes and generates a report to a file with the charges for a patients hospital stay. 
The coding for the calculations were easy enough. 
Prompt user for info, calculate info, return total charges or whatever. 
My problem is with writing a report to the file including the charges entered by user and total amount for this charges. 
I've done everything perfect, I just don't really understand how writing to files and such works...

`Infile=open("hospital_charges.txt","w")...`

Now what?
Yes obviously use the .write method. But my hospital charges file stays blank...