How do you create a function that takes all the letters of a text file and writes them in all caps into a new file?
def up_case(inpFileName, outFileName): inFile = open(inpFileName, 'r'); outFile = open(outFileName, 'w'); d=ord('A')-ord('a'); for line in inFile: nline=''; for i in range(len(line)): if line[i]>='a' and line[i]<='z': nline = nline + chr(ord(line[i])+d); else: nline = nline + line[i]; outFile.write(nline);
## TEST. # Before running it create file 'a.txt' up_case('a.txt', 'b.txt')
Once you reach college or university, the level of writing that is expected from you should be quite high. They…
APPROVED BY CLIENTS
I want to sincerely thank you for your help. your work and time that it was completed are more than I could have hoped for and I appreciate your efforts. I look forward to working with you on the next project. which will be in a few months.