Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help Formatting Print Statement (input from 3 lists) X 2
Post: RE: Help Formatting Print Statement (input from 3 ...

@wavic I'm just that much of a newbie. I apologize, but I just don't get how to phrase my command to get it to work. Formatting was the big problem for me in Python this year...other than having a deg...
Hebruiser Homework 11 6,320 Dec-02-2017, 06:21 PM
    Thread: Help Formatting Print Statement (input from 3 lists) X 2
Post: RE: Help Formatting Print Statement (input from 3 ...

@wavic, I see what you're getting at, however, i have no idea how to implement that into my code. For example, is this going to be its own line of code, or will it be wrapped into one of the fileWrite...
Hebruiser Homework 11 6,320 Dec-01-2017, 03:06 PM
    Thread: Help Formatting Print Statement (input from 3 lists) X 2
Post: RE: Help Formatting Print Statement (input from 3 ...

Sure thing. It's a big one, just so you know... def data_save(): fileWrite = open('OrdersArchive.txt', 'a') fileWrite.write(str(now)) fileWrite.write(str(cust_name)) fileWrite.write(s...
Hebruiser Homework 11 6,320 Dec-01-2017, 01:51 AM
    Thread: Help Formatting Print Statement (input from 3 lists) X 2
Post: RE: Help Formatting Print Statement (input from 3 ...

Errrm. I am sorry, I may have misstated my goal here. I am only trying to format the output of my fileWrite commands that I'm appending to the .txt file so that they'll be separated by colons. As in:...
Hebruiser Homework 11 6,320 Dec-01-2017, 12:48 AM
    Thread: Help Formatting Print Statement (input from 3 lists) X 2
Post: Help Formatting Print Statement (input from 3 list...

I am working on my class project and am having some difficulty getting my print statement to format "neatly". Teacher wants it to look like this when it prints-- ex.'TrapperKeeper________$3.99____...
Hebruiser Homework 11 6,320 Nov-29-2017, 11:03 PM
    Thread: I am stuck on functions
Post: RE: I am stuck on functions

i think i need to go back and spend the rest of the day doing the practice exercises in the book. I am just not getting it. I may not be cut out for this. I'm learning bash scripting right now, too......
Hebruiser Homework 11 7,524 Nov-11-2017, 08:46 PM
    Thread: I am stuck on functions
Post: RE: I am stuck on functions

Quote:In your function, as Wavic said, if you are using the sum builtin you don't need the for loop. So total = sum(scores) would do it. Also you want to divide total by the length of scores, not scor...
Hebruiser Homework 11 7,524 Nov-11-2017, 06:42 PM
    Thread: I am stuck on functions
Post: RE: I am stuck on functions

Awesome! I think the indentation is a result of me not knowing how to format posts via this interface. It is not that way in my code on Pycharm. def scoreCalculator(scores): total = scoreCalculato...
Hebruiser Homework 11 7,524 Nov-11-2017, 03:30 PM
    Thread: I am stuck on functions
Post: RE: I am stuck on functions

Yep. It is homework and i want to learn it. I have a degree in Language and Linguistics (which pays exactly zero) and I love that I can draw cognates, logically between basic language structure betwee...
Hebruiser Homework 11 7,524 Nov-11-2017, 02:48 PM
    Thread: I am stuck on functions
Post: I am stuck on functions

Hi all, I am working on a lab assignment and I am stuck...probably because it's friday and my brain stopped at 5pm. At any rate, here's the actual problem: Create a Python program that does the follow...
Hebruiser Homework 11 7,524 Nov-11-2017, 02:07 AM

User Panel Messages

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