Read from an existing file, then output a file with the same name but an extension:
file = raw_input ('Enter the filename:\n')
fileout = open ('file.out', 'w')
However, when I enter a filename like "test", it gives the output file as "file.out" instead of "test.out".
file = raw_input ('Enter the filename:\n')
fileout = open ('file.out', 'w')
However, when I enter a filename like "test", it gives the output file as "file.out" instead of "test.out".
Comment