Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: reading text file and writing to an output file precedded by line numbers
Post: RE: reading text file and writing to an output fil...

ok so I tried it to ways and both came back saying not enough arguments for format strings, 1st I tried outputFile.write('/* %d */ %s' % total, line) #and then I tried line1 = ('/* %d */ %s' %...
kannan Homework 7 10,413 Dec-11-2018, 04:46 AM
    Thread: reading text file and writing to an output file precedded by line numbers
Post: RE: reading text file and writing to an output fil...

the book is python for everyone 2e. it covers the string format operator ex "%10.2f" % price but it does not cover the .format style
kannan Homework 7 10,413 Dec-11-2018, 04:29 AM
    Thread: reading text file and writing to an output file precedded by line numbers
Post: RE: reading text file and writing to an output fil...

Would you be able to give me an example of the best way to fix that line?
kannan Homework 7 10,413 Dec-11-2018, 04:18 AM
    Thread: reading text file and writing to an output file precedded by line numbers
Post: reading text file and writing to an output file pr...

In Python, Write a program that reads a file containing a text (input.txt). Read each line and send it to the output file (output.txt), preceded by line numbers. If the input file is:5 pts Mary had a ...
kannan Homework 7 10,413 Dec-11-2018, 04:03 AM
    Thread: finding the minimum value out of a set of inputs
Post: finding the minimum value out of a set of inputs

so here is the question. Translate the following pseudocode for finding the minimum value from a set of inputs into a Python program. Set a Boolean variable "first" to true. While another value has be...
kannan Homework 1 5,311 Oct-30-2018, 08:38 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020