Re: [Tutor] Sequencing

2011-05-19 Thread Alan Gauld
"Cindy Lee" wrote Sorry I am still lost. Noah gave you a good breakdown to follow however... So I am suppose to use a string? You are supposed to use a string as a parameter of your function and process it to generate a new string which you return from the function. Do you understand

Re: [Tutor] Sequencing

2011-05-19 Thread Noah Hall
On Thu, May 19, 2011 at 11:10 AM, Cindy Lee wrote: > Sorry I am still lost. So I am suppose to use a string? Something like: > (just not sure is the right string...) Well, no. The assignment you've been given states the you need to define a function that takes a string as an argument, for example

Re: [Tutor] Sequencing

2011-05-19 Thread Cindy Lee
Apples and 7 oranges From: Alan Gauld To: tutor@python.org Sent: Wednesday, 18 May 2011, 8:07 Subject: Re: [Tutor] Sequencing "Cindy Lee" wrote > ...asked to make a function that receives text as an argument > and returns the same text, but with 1 added to

Re: [Tutor] Sequencing

2011-05-18 Thread Alan Gauld
"Cindy Lee" wrote ...asked to make a function that receives text as an argument and returns the same text, but with 1 added to each number. So far I have: def ReceiveAndReturn(): sentence=raw_input("Give me a sentence with variables in it: ") The assignment says it should receive t

Re: [Tutor] Sequencing

2011-05-18 Thread Noah Hall
(y) <==> x+y No, not really. What you want to do is to parse the string given, and then edit the values in place. > > From: Dave Angel > To: Cindy Lee > Cc: "tutor@python.org" > Sent: Wednesday, 18 May 2011, 3:02 > Subject: Re

Re: [Tutor] Sequencing

2011-05-18 Thread Cindy Lee
2011, 3:02 Subject: Re: [Tutor] Sequencing On 01/-10/-28163 02:59 PM, Cindy Lee wrote: > Hi Pyton Tutors thanks for adding me, > > I am new to Python and missed one of my classes and am not sure of my > homework. We are currently on sequencing and are being asked to make a > function

Re: [Tutor] Sequencing

2011-05-18 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Cindy Lee wrote: Hi Pyton Tutors thanks for adding me, I am new to Python and missed one of my classes and am not sure of my homework. We are currently on sequencing and are being asked to make a function that receives text as an argument and returns the same text, b

Re: [Tutor] Sequencing

2011-05-18 Thread spawgi
I don't think we can solve your homework :). But regarding hint, try to think in terms of each number as part of list and then process the list. Also, consider the option if the numbers will be given as a string or as integers or float etc. Thanks. On Wed, May 18, 2011 at 2:49 PM, Cindy Lee wrot

[Tutor] Sequencing

2011-05-18 Thread Cindy Lee
Hi Pyton Tutors thanks for adding me, I am new to Python and missed one of my classes and am not sure of my homework. We are currently on sequencing and are being asked to make a function that receives text as an argument and returns the same text, but with 1 added to each number. So far I have