-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sockets - Shirley #30
base: master
Are you sure you want to change the base?
Conversation
I understood the portmanteau rules retaining everything before (but not including) the first vowel of the first word, and everything after (and including) the first vowel fo the last word
Portmanteau GeneratorWhat We're Looking For
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
@@ -0,0 +1,51 @@ | |||
def is_vowel?(letter) | |||
return ["a", "e", "i", "o", "u"].include?(letter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You miss upper case characters here! one way to fix this is using letter.downcase()
|
||
# method to find the index of desired vowel, whether it be first or last vowel | ||
# char_idx represents index for the letter that you want to start iterating at | ||
def find_vowel_index(word, char_idx, count_direction) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you broke this out into it's own method
Portmanteau Generator
Congratulations! You're submitting your assignment.
Comprehension Questions
is_vowel?
method affect your project?