Write a python program that opens the career.txt file that is included below, and then appends one more career onto the file. f = open(\"output\", \"w\") file = open(\"careers.txt\", \"w\") #writing five careers file.write(\"teacher \ \") file.write(\"coach \ \") file.write(\"leadership \ \") file.write(\"technology career \ \") file.write(\"services career \ \") file.close() Solution Hi, friend please find my code. it is working fine. with open(\"careers.txt\", \"a\") as file: #writing five careers file.write(\"teacher \ \") file.write(\"coach \ \") file.write(\"leadership \ \") file.write(\"technology career \ \") file.write(\"services career \ \") file.close() .
Write a python program that opens the career.txt file that is included below, and then appends one more career onto the file. f = open(\"output\", \"w\") file = open(\"careers.txt\", \"w\") #writing five careers file.write(\"teacher \ \") file.write(\"coach \ \") file.write(\"leadership \ \") file.write(\"technology career \ \") file.write(\"services career \ \") file.close() Solution Hi, friend please find my code. it is working fine. with open(\"careers.txt\", \"a\") as file: #writing five careers file.write(\"teacher \ \") file.write(\"coach \ \") file.write(\"leadership \ \") file.write(\"technology career \ \") file.write(\"services career \ \") file.close() .