Variables | |
| tuple | sin = raw_input('pattern to replace: ') |
| tuple | sout = raw_input('replace with: ') |
| string | choice = 'y' |
| tuple | file = open(filename,'r') |
| string | s = '' |
| tuple | line = line.replace(sin,sout) |
| string searchandreplace::choice = 'y' |
| tuple searchandreplace::file = open(filename,'r') |
| tuple searchandreplace::line = line.replace(sin,sout) |
| searchandreplace::s = '' |
| tuple searchandreplace::sin = raw_input('pattern to replace: ') |
| tuple searchandreplace::sout = raw_input('replace with: ') |
1.6.1