All pastes #390940 Raw Edit

Miscellany

public python v1 · immutable
·published 2007-03-11 19:57 UTC
rendered paste body
import osls = os.linesepwhile True:    fname = raw_input("Name of the file you'd like to create? ")    if os.path.exists(fname):        print fname,"already exists"    else:        breakall = []print "\nEnter lines ('.' by itself to quit).\n"while True:    entry = raw_input(">> ")    if entry == '.':        break    else:        all.append(entry)