Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to Think Like a Computer Scientist - Iteration Problem
Post: RE: How to Think Like a Computer Scientist - Itera...

This is where I have got to. It does work to the extent of returning a message and ending the code if an initial 0 is entered. Any other initial value is ignored which isn't great (although you could ...
rubicana General Coding Help 6 4,277 Sep-07-2017, 04:20 PM
    Thread: How to Think Like a Computer Scientist - Iteration Problem
Post: RE: How to Think Like a Computer Scientist - Itera...

Code from here def checkout(): total = 0 count = 0 moreItems = True while moreItems: price = float(input('Enter price of item (0 when done): ')) if price != 0: ...
rubicana General Coding Help 6 4,277 Sep-07-2017, 04:00 PM
    Thread: How to Think Like a Computer Scientist - Iteration Problem
Post: How to Think Like a Computer Scientist - Iteration...

Please see http://interactivepython.org/runestone/s...nel-values This is the code given.. (This might remove the idents - see the website if this happens) def checkout(): total = 0 count = 0...
rubicana General Coding Help 6 4,277 Sep-07-2017, 11:43 AM

User Panel Messages

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