[Solved] Working on a project on codeacademy, nested if statements [closed]


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 🙂

1

solved Working on a project on codeacademy, nested if statements [closed]