"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
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
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
"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
(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
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
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
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
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