Skip to content

English words#3

Open
Us-manArshad wants to merge 17 commits intomasterfrom
english_words
Open

English words#3
Us-manArshad wants to merge 17 commits intomasterfrom
english_words

Conversation

@Us-manArshad
Copy link
Owner

Check my code

main.py Outdated
for word in words_list:
vowels=0
for i in word:
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u'):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we store these constants in some list
VOWELS = ['a', 'e', 'i', 'o', 'u']

and use that where needed

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sir! noted....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants