Any of yall good with python? I'm stuck af on a question

It's "\n". Like backslash n.

>>.8441990
>I tried with the "/n" but its just adding the /n to the end of salary.
You will be quoted on that one

why doesn't Veeky Forums support [code] tags wtf

I have a small problem in learning with SICP in python.
I just can't seem to be able to import the .py file into the IDLE and work on the exercises and examples.
For an example, I have just skipped Chapter 1.6 because it is long and I can't just import the file I need to try out the examples.
How do you do it?

I have a question about Python too. I sperg out when trying to type code, so bare with me because I have no fucking clue what I'm doing.

I'm analyzing data from a pulsar catalog, and I want to be able to call the values (2nd column) associated with the parameters (1st column) for a given pulsar, denoted by their J2000 names (PSRJ). I can do the whole analysis part, but I have no idea how to read the file, determine if a pulsar has all the data I need (some of them don't have values for flux density and shit), and then take that data to be compared to other pulsars.

Here's a pic of the catalog. It came as a .db file, but I made a copy as a .txt file, and I was also able to make it a .csv file and separate the columns in excel if that helps.

just iterate through them and output the index of each list like so:

Ids: ['2', '4', '1', '10', '6', '7', '15', '9']
Names: ['Joe', 'Steve', 'Samantha', 'Leah', 'Riley', 'Ashley', 'Sheyanne', 'Dave']
Salaries: ['95000', '35000', '150000', '99000', '53215', '23424', '225000', '35235']

for i in range(len(ids)):
print(Ids[i], Names[i], Salaries[i]

easy peasy

Your number inside your range function will be a float (which python don't like), and its also stupid to take all three lists and divide by 3, just use the length of the Ids list.

There's a daily programming thread on /g/, you might get a faster answer there next time. I think they have an IRC channel too

Ignore all these C babbies fucking around with indices. You're using Python, use it properly:

print "id, name, salary"
for Id, Name, Salary in zip(Ids, Names, Salaries):
print "%s, %s, %s" % (Id, Name, Salary)

And obviously indent the second "print" line.

Now this is how you bait people. 10/10 post.