Python question

I am trying to write a program in python, of which I am pretty new. The program is supposed to ask the user for a list of names that will be coming from a spreadsheet, there are multiple names per cell separated by commas. After the names are entered the program will format them for use in other programs. The problem I am having is that when you copy and paste the cells that you want, it is like it is pasting it then automatically entering the data, then it somehow is pasting each line to the regular terminal prompt and automatically entering it.

This is what I have done so far:

names = raw_input('Shoot me some names partner: ')

print ‘What do you want to do?’
print ‘1 - format names for program 1’
print ‘2 - format names for program 2’

first_act = raw_input('Enter choice: ')

print names
print first_act

Now when I run this and input the dummy names I put into a google doc spreadsheet to test, as soon as I hit shift+ctl+v, without hitting enter I get this:

seth@linux-1337:~> python pythonproj/names.py
Shoot me some names partner: abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnopWhat do you want to do?
1 - format names for program 1
2 - format names for program 2
Enter choice: abcd,efg,hijkl,mnop
abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop
If ‘abcd,efg,hijkl,mnop’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop
If ‘abcd,efg,hijkl,mnop’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop
If ‘abcd,efg,hijkl,mnop’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop
If ‘abcd,efg,hijkl,mnop’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop
If ‘abcd,efg,hijkl,mnop’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf abcd,efg,hijkl,mnop
seth@linux-1337:~> abcd,efg,hijkl,mnop

Any idea what could be causing this and what I can to to change it? This is python 2.7, and I am using openSUSE 11.4.

On 01/15/2012 09:16 PM, hito kiri wrote:
> Any idea what could be causing this

did you notice our forum named Forum: “Programming/Scripting - Questions
about programming, bash scripts, perl, php, cron jobs, ruby, python,
etc.” at http://tinyurl.com/5v695w4

probably more “programmers” hanging out there than here…


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!

Actually no I didn’t, I didn’t even think to look in development for some reason. I was a bit frustrated at the time and not thinking completely clearly.

On 01/18/2012 01:46 AM, hito kiri wrote:
>
> I was a bit frustrated at the time and not thinking completely clearly.

i understand! i have tried programming (but not very much–i get a quick
headache)…

so, you might keep the full range of forums in mind (or just look
through the full list) the next time you seek aid (i mean, you see how
much programming help you got in this one!)

hope you got it sorted out…


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!