Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 05:06 PM, craig.si...@gmail.com wrote: def main(): name= input('Enter your full name: ') split=name.split() Full_name=split[2],split[0], split[1] print(Full_name[2],',', Full_name[0], Full_name[1]) main() Sorry it took so long to get back to you guys and I

Re: Need assistance

2015-07-19 Thread craig . sirna
On Thursday, July 16, 2015 at 9:16:01 PM UTC-5, craig...@gmail.com wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. The assignment wants us to take a users first, middle and last name in

Re: Need assistance

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: def main(): name= input('Enter your full name: ') split=name.split() Full_name=split[2],split[0], split[1] print(Full_name[2],',', Full_name[0], Full_name[1]) main() Sorry, but this code is no

Re: Need assistance

2015-07-19 Thread MRAB
On 2015-07-19 01:59, Denis McMahon wrote: On Sat, 18 Jul 2015 12:35:10 +0200, Sibylle Koczian wrote: Am 18.07.2015 um 02:40 schrieb Denis McMahon: Having a list of words, get a copy of the list in reverse order. See the reversed function (and maybe the list function). That won't really

Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 06:21 PM, Rick Johnson wrote: On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: def main(): name= input('Enter your full name: ') split=name.split() Full_name=split[2],split[0], split[1] print(Full_name[2],',', Full_name[0], Full_name[1])

Re: Need assistance

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 3:16 PM, Michael Torrie torr...@gmail.com wrote: On 07/19/2015 06:21 PM, Rick Johnson wrote: On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: def main(): name= input('Enter your full name: ') split=name.split()

Re: Need assistance

2015-07-18 Thread Laura Creighton
You don't have to index them. You can unpack them into a tuple of first, middle, last Laura (who is trying not to do somebody's homework for them, since I'm not the person who needs to learn this). -- https://mail.python.org/mailman/listinfo/python-list

Re: Need assistance

2015-07-18 Thread Sibylle Koczian
Am 18.07.2015 um 02:40 schrieb Denis McMahon: On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote: The assignment wants us to take a users first, middle and last name in a single input ( name=('enter your full name: )). Then we must display the full name rearranged in Last, First Middle

RE: Need assistance

2015-07-18 Thread Joseph Lee
To: Sibylle Koczian nulla.epist...@web.de Cc: python-list@python.org; l...@openend.se Subject: Re: Need assistance You don't have to index them. You can unpack them into a tuple of first, middle, last Laura (who is trying not to do somebody's homework for them, since I'm not the person who needs

Re: Need assistance

2015-07-18 Thread mm0fmf via Python-list
On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of 2 + 2 = Gawd it's so long but ISTR there were 3 stack registers and the display. So you could press 1

Re: Need assistance

2015-07-18 Thread Mark Lawrence
On 18/07/2015 17:18, Dennis Lee Bieber wrote: On Sat, 18 Jul 2015 14:16:11 +0200, Laura Creighton l...@openend.se declaimed the following: You don't have to index them. You can unpack them into a tuple of first, middle, last Laura (who is trying not to do somebody's homework for them, since

Re: Need assistance

2015-07-18 Thread mm0fmf via Python-list
On 18/07/2015 20:10, Joel Goldstick wrote: On Sat, Jul 18, 2015 at 2:51 PM, mm0fmf via Python-list python-list@python.org wrote: On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 +

Re: Need assistance

2015-07-18 Thread Joel Goldstick
On Sat, Jul 18, 2015 at 2:51 PM, mm0fmf via Python-list python-list@python.org wrote: On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of 2 + 2 = Gawd it's

Re: Need assistance

2015-07-18 Thread William Ray Wing
On Jul 18, 2015, at 1:34 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: [byte] What is an {HP calculator} roll operation? The original Hewlett Packard “Scientific” calculators (HP-35, 45, 65, etc) that used Polish notation (operand, operand, operation; with no “=“ sign) had a

Re: Need assistance

2015-07-18 Thread Denis McMahon
On Sat, 18 Jul 2015 12:35:10 +0200, Sibylle Koczian wrote: Am 18.07.2015 um 02:40 schrieb Denis McMahon: Having a list of words, get a copy of the list in reverse order. See the reversed function (and maybe the list function). That won't really help, because the desired order is, with the

Re: Need assistance

2015-07-18 Thread MRAB
On 2015-07-18 19:28, William Ray Wing wrote: On Jul 18, 2015, at 1:34 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: [byte] What is an {HP calculator} roll operation? The original Hewlett Packard “Scientific” calculators (HP-35, 45, 65, etc) that used Polish notation (operand,

Re: Need assistance

2015-07-18 Thread Michael Torrie
On 07/18/2015 03:44 PM, Dennis Lee Bieber wrote: The new units (HP28, 48, 49, 50, etc.) no longer use the 4-register stack; the stack is whatever is available in memory. As a result, the Roll instructions now need an argument for how many stack entries are in play. The HP50g has

Re: Need assistance

2015-07-17 Thread Igor Korot
Hi, Rob, On Fri, Jul 17, 2015 at 12:40 PM, Rob Gaddi rgaddi@technologyhighland.invalid wrote: On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in

Re: Need assistance

2015-07-17 Thread Rob Gaddi
On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. The assignment wants us to take a users first, middle and last name in a single input (

Re: Need assistance

2015-07-17 Thread Mark Lawrence
On 17/07/2015 17:40, Rob Gaddi wrote: On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. The assignment wants us to take a users first, middle

Re: Need assistance

2015-07-17 Thread Denis McMahon
On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote: The assignment wants us to take a users first, middle and last name in a single input ( name=('enter your full name: )). Then we must display the full name rearranged in Last, First Middle order. To generate a list of words from a

Re: Need assistance

2015-07-16 Thread Michael Torrie
On 07/16/2015 08:44 PM, Joseph Lee wrote: Hi Michael, I have talked to this guy offlist (basically you gave him the answer (smiles)). Cheers, Joseph Sounds good. I had hoped to merely point him in the right way, and that he would put things together. I hope this is indeed the case. --

RE: Need assistance

2015-07-16 Thread Joseph Lee
Hi Craig: -Original Message- From: Python-list [mailto:python-list-bounces+joseph.lee22590=gmail@python.org] On Behalf Of craig.si...@gmail.com Sent: Thursday, July 16, 2015 8:01 PM To: python-list@python.org Subject: Re: Need assistance I am in bed, on my phone, gotta be up in 4

Re: Need assistance

2015-07-16 Thread Michael Torrie
On 07/16/2015 08:15 PM, craig.si...@gmail.com wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. Can you post the code that you are currently working with? The assignment wants us to take a

Re: Need assistance

2015-07-16 Thread craig . sirna
I am in bed, on my phone, gotta be up in 4 hours for work. I will get back with you guys tomorrow after I take care of my Math class stuff. I need to step away from this for a day lol. Worst part...this is the C assignment and it's driving me crazy. I do recall the list fuction. But isn't

RE: Need assistance

2015-07-16 Thread Joseph Lee
-list@python.org Subject: Re: Need assistance On 07/16/2015 08:15 PM, craig.si...@gmail.com wrote: I need help writing a homework program. I'll write it, but I can't figure out how to incorporate what I have read in the book to work in code. Can you post the code that you are currently working

RE: Need Assistance on this program.

2011-06-02 Thread Prasad, Ramit
Are you writing a command line interpreter (even if a partial one)? If so take a look at : http://docs.python.org/library/cmd.html Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This

Re: Need Assistance on this program.

2011-05-13 Thread Tim Golden
On 13/05/2011 06:22, vijay swaminathan wrote: Hi Tim., Thanks.. This works as I had expected. are there any documentation for the subprocess.call method? I tried going through the python doc but could not narrow down.

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
I tried using that as well. The problem is, the thread becomes dead as soon as it executes the invocation of command prompt. I want the thread to be alive till I go and manually close the command prompt. -Vijay Swaminathan. On Thu, May 12, 2011 at 2:46 PM, Andrea Crotti

Re: Need Assistance on this program.

2011-05-12 Thread Andrea Crotti
vijay swaminathan swavi...@gmail.com writes: Hi All, I'm new bie to python thread programming and would like to assistance on the attached code. In this, I'm calling a thread to invoke a command prompt and would like to print the Thread as alive as long as the command prompt is opened and

Re: Need Assistance on this program.

2011-05-12 Thread Tim Golden
On 12/05/2011 10:45, vijay swaminathan wrote: I tried using that as well. The problem is, the thread becomes dead as soon as it executes the invocation of command prompt. Can you post the code you're using, please? This should be simple so maybe you've misunderstood something in the

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
Hi Tim, I have already done that. But for some reason my response went as a new thread. Attaching the code again. On Thu, May 12, 2011 at 3:38 PM, Tim Golden m...@timgolden.me.uk wrote: On 12/05/2011 10:45, vijay swaminathan wrote: I tried using that as well. The problem is, the thread

Re: Need Assistance on this program.

2011-05-12 Thread Tim Golden
On 12/05/2011 11:29, vijay swaminathan wrote: ... snippet from code ... print 'Invoking Command Promptt..' #subprocess.call([start, /DC:\\PerfLocal_PAL, scripts_to_execute.bat], shell=True) subprocess.call([start, C:\\windows\\system32\\cmd.exe], shell = True)

Re: Need Assistance on this program.

2011-05-12 Thread Thomas 'PointedEars' Lahn
vijay swaminathan wrote: I have already done that. But for some reason my response went as a new thread. Attaching the code again. JFYI: Please DO NOT post attachments in a non-binary newsgroup or to a mailing list (are there binary ones at all?) again. TIA. -- PointedEars Bitte keine

Re: Need Assistance on this program.

2011-05-12 Thread vijay swaminathan
Hi Tim., Thanks.. This works as I had expected. are there any documentation for the subprocess.call method? I tried going through the python doc but could not narrow down. I just wanted to know how do I pass an arguement after invoking the command prompt? Any thoughts on this pls? On Thu, May