The Maxwell School
Syracuse University
Syracuse University
""" Say hello to a file. Spring 2020 PJW """ author_name = "Pete Wilcoxen" outfile = "hello2_file.md" author_msg = "Author: *"+author_name+"*\n" fh = open(outfile,'w') fh.write("# Hello, World!\n") fh.write("\n") fh.write(author_msg) fh.write("\n") days = 365 hours = 24 print("Hours per year:",days*hours,file=fh) fh.close()