Computers and Technology, 01.07.2020 15:01 100738
Write a function named "addline" that reads a text file and produces an output file which is a copy of the file, except the first five columns of each line contain a four digit line number, followed by a space. Start numbering the first line in the output file at 1. Ensure that every line number is formatted to the same width in the output file. Use one of your Python programs as test data for this exercise: your output should be a printed and numbered listing of the Python program.
def addline(inName, outName): # inName and outName are strings
// TODO
Write a function named "removeNum" that undoes the numbering of the addline function: it should read a file with numbered lines and produce another file without line numbers.
def removeNum(inName, outName): # inName and outName are strings
// TODO
Answers: 3
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
Computers and Technology, 24.06.2019 19:00
Luis is cloud-based( microsoft bot framework). true false
Answers: 1
Write a function named "addline" that reads a text file and produces an output file which is a copy...
Geography, 06.09.2019 19:30
Computers and Technology, 06.09.2019 19:30
Computers and Technology, 06.09.2019 19:30
English, 06.09.2019 20:10
Mathematics, 06.09.2019 20:10