Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Larry Hudson via Python-list
On 05/18/2016 06:50 PM, Jake Kobs wrote: MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. Why do you think you want to _return_ a print statement? The print statement _DOES_ the printing, there is nothing th

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread MRAB
On 2016-05-19 02:50, Jake Kobs wrote: MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. "return the print statements"? The print statements ... print! Have a search for Python tutorials online and pick one t

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Steven D'Aprano
On Thu, 19 May 2016 11:50 am, Jake Kobs wrote: > MRAB, > > I am not quite sure how to return the print statements so I thought that > returning the displayInfo def would help.. Im so lost. There's no need to return the text that you printed. You printed it, the job is done. Here is some genera

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
MRAB, I am not quite sure how to return the print statements so I thought that returning the displayInfo def would help.. Im so lost. -- https://mail.python.org/mailman/listinfo/python-list

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread MRAB
On 2016-05-19 02:04, Jake Kobs wrote: Here is the code: #Lab 9-4 Blood Drive #the main function def main(): endProgram = 'no' while endProgram == 'no': print # declare variables pints = [0] * 7 totalPints = 0 averagePints = 0 highPints = 0 lowPints = 0

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread John Gordon
In <1cc14787-7061-45c9-a70e-1b16e3f5e...@googlegroups.com> Jake Kobs writes: > Here is the code: > def getHigh(pints, highPints): > highPints = pints[0] > counter = 1 > while counter < 7: > if (pints[counter] > highPints): > highPints = pints[counter] >

Program prints questions for user input, but won't show the answer output

2016-05-18 Thread Jake Kobs
Here is the code: #Lab 9-4 Blood Drive #the main function def main(): endProgram = 'no' while endProgram == 'no': print # declare variables pints = [0] * 7 totalPints = 0 averagePints = 0 highPints = 0 lowPints = 0