Aug 22nd, 2015
- #! /usr/bin/env python
- print "\nNow i'm going to ask you for three lines.\n"
- # Raw_Input asks us for three "lines" and stores them into the variables
- line1 = raw_input('Line 1:')
- line2 = raw_input('Line 2:')
- line3 = raw_input('Line 3:')
- print "I'm going to write these to the file."
- with open('newfile', 'w') as target:
- print "Done writing."
Please, Sign In to add comment