Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def convertToPigLatin(string:str) -> str:
- '''
- Convert string to pig latin
- '''
- vowels = "aeiou"
- if string[0].lower() in vowels:
- string = string + "ay"
- else:
- string = string[1:] + string[0] + "ay"
- return string
Add Comment
Please, Sign In to add comment