#! /usr/bin/python # Filename:using_file.py poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Pyhon! ''' f = file('poem.txt', 'w') # open for 'w'riting f.write(poem) # write text to file f.close() # close…