-8

http://imgur.com/tyETg3M

Here's a screen shot of what I have to do. I'm really confused, and have no idea where to start.

Any tips?

jamylak
  • 128,818
  • 30
  • 231
  • 230
Dylan McCann
  • 113
  • 2
  • 5
  • 17
  • 1
    Taking a screenshot of code is against the recommendations of this site, also it probably takes 10X as long as just COPY-Paste – jamylak Jun 22 '13 at 05:56

1 Answers1

3

In Pig Latin, if the word starts with a consonant, then it moves to the end of the string, and you add "ay", right?

Let's say my input is banana. Now, with slicing:

banana[0] == 'b'
banana[1:] == 'anana'

Now try figure it out from here :)

Community
  • 1
  • 1
TerryA
  • 58,805
  • 11
  • 114
  • 143