Re: need some basic help

2015-12-24 Thread Terry Reedy
On 12/24/2015 2:33 PM, Qurrat ul Ainy wrote: what is snippet ?? Search 'snippet definition' on the web with your browser. It comes from 'snip', so something 'snipped'. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
On Thursday, December 24, 2015 at 8:33:59 PM UTC+1, Qurrat ul Ainy wrote: > what is snippet ?? > > > > On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > > Hello, > > > > > > Can someone pl

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
what is snippet ?? On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > Hello, > > > > Can someone please explain this code below. I am new at Python . > > Thanks > > > > > > def receive_mes

Re: need some basic help

2015-12-24 Thread Andrew Farrell
This code snippet is a method on a class. What is a method? This chapter of the book Think Python does a good job of explaining it. Without understanding this foundation, it isn't possible to really answer your question, so definit

Re: need some basic help

2015-12-24 Thread Steven D'Aprano
On Thu, 24 Dec 2015 12:53 pm, Qurrat ul Ainy wrote: > Hello, > > Can someone please explain this code below. I am new at Python . > Thanks > > > def receive_messages(self, msgs, time): > for msg in msgs: > msg.set_recv_time(time) > self.msgs_received.extend(msgs) This is

Re: need some basic help

2015-12-23 Thread Benjamin Kulas
On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > Hello, > > Can someone please explain this code below. I am new at Python . > Thanks > > > def receive_messages(self, msgs, time): > for msg in msgs: > msg.set_recv_time(time) > self.msgs_received.

need some basic help

2015-12-23 Thread Qurrat ul Ainy
Hello, Can someone please explain this code below. I am new at Python . Thanks def receive_messages(self, msgs, time): for msg in msgs: msg.set_recv_time(time) self.msgs_received.extend(msgs) -- https://mail.python.org/mailman/listinfo/python-list

Re: Basic help

2014-05-21 Thread bob gailer
On 5/21/2014 3:31 AM, Pat Fourie wrote: > > Good Day Bob, > > Many thanks for your response. ur welcome. Some guidelines: Post in plain text (rather than formatted with colors etc.) reply to the list so we all get a chance to read your responses. > > As mentioned I am new to Python, I apologise

Re: Basic help

2014-05-20 Thread Emile van Sebille
On 5/20/2014 7:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. Welcome -- I need to maintain software written on Python 1.5.2. I'd point you to the tutorial for a start. See the docs at https://docs.python.org/release/1.5.2/ I will upgrade after learning more. My question is

Re: Basic help

2014-05-20 Thread Ned Batchelder
On 5/20/14 10:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. Pat, you are dealing with a version most people have never even seen! You are brave! :) My question is : When compiling, the r

Basic help

2014-05-20 Thread Pat Fourie
Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. My question is : When compiling, the results of the compile is displayed in the "active window". How can I view this window. Many thanks for your assistance. Kind regards

Re: VERY BASIC HELP

2013-10-01 Thread Mark Lawrence
On 30/09/2013 18:50, vignesh.harikris...@gmail.com wrote: Thank you both so much! I'll be sure to make more pertinent subject lines now :) Thanks for the detailed explanations! Clearly, I've just started learning this language ~20 minutes before I made this post, and am still learning the basi

Re: VERY BASIC HELP

2013-10-01 Thread rusi
On Monday, September 30, 2013 11:20:16 PM UTC+5:30, vignesh.h...@gmail.com wrote: > Thank you both so much! I'll be sure to make more pertinent subject lines now > :) Thanks for the detailed explanations! Clearly, I've just started learning > this language ~20 minutes before I made this post, an

Re: VERY BASIC HELP

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 1:50 PM, wrote: > Thank you both so much! I'll be sure to make more pertinent subject lines > now :) Thanks for the detailed explanations! Clearly, I've just started > learning this language ~20 minutes before I made this post, and am still > learning the basics. Do you gu

Re: VERY BASIC HELP

2013-09-30 Thread vignesh . harikrishna
Thank you both so much! I'll be sure to make more pertinent subject lines now :) Thanks for the detailed explanations! Clearly, I've just started learning this language ~20 minutes before I made this post, and am still learning the basics. Do you guys know of any guides for a beginner? I am defi

Re: VERY BASIC HELP

2013-09-30 Thread John Gordon
In <380132bc-bc9c-4d57-95d8-dc01f26f4...@googlegroups.com> vignesh.harikris...@gmail.com writes: > c=int(raw_input("How many numbers do you want to work? (Min. 2 Max. 3)")) > if c==2: > x=int(raw_input("Enter the first number to be worked")) > y=int(raw_input("Enter the second number to b

Re: VERY BASIC HELP

2013-09-30 Thread Chris Angelico
given your code, and you've said exactly what it's doing that you don't expect. I really appreciate that! But one thing I would ask: Next time, please consider your subject line. That's the first chance you have to grab someone's attention - "VERY BASIC HELP" doesn

VERY BASIC HELP

2013-09-30 Thread vignesh . harikrishna
c=int(raw_input("How many numbers do you want to work? (Min. 2 Max. 3)")) if c==2: x=int(raw_input("Enter the first number to be worked")) y=int(raw_input("Enter the second number to be worked")) elif c==3: x=int(raw_input("Enter the first number to be worked")) y=int(raw_input("Ent