Re: [Tutor] using a for loop in another method

2016-04-22 Thread Michael Selik
On Fri, Apr 22, 2016 at 1:57 PM Rene.Castillo wrote: > expected output- > reverse_words("This is an example!") # returns "sihT si na !elpmaxe" > > def reverse_words(strng): > strng = strng[::-1].split(' ') > strng.reverse() > return ' '.join(strng) > Let's walk through each step that you

Re: [Tutor] using a for loop in another method

2016-04-22 Thread Tim Golden
On 22/04/2016 17:08, Rene.Castillo wrote: Hi, this is my first post on this mailing list- I wanted to ask about this type of execution in python, expected output- reverse_words("This is an example!") # returns "sihT si na !elpmaxe" below is my execution, followed by another persons execution

[Tutor] using a for loop in another method

2016-04-22 Thread Rene.Castillo
Hi, this is my first post on this mailing list- I wanted to ask about this type of execution in python, expected output- reverse_words("This is an example!") # returns "sihT si na !elpmaxe" below is my execution, followed by another persons execution, which i dont completely understand. def r