Skip to content

Conversation

@SteliosGee
Copy link
Contributor

This pull request introduces a set of string utility functions designed to simplify common string manipulations. The following functions have been added:

count_vowels: A function that counts the number of vowels in a given string.
is_anagram: A function that checks if two strings are anagrams of each other.
remove_punctuation: A function that removes all punctuation characters from a given string.

@netlify
Copy link

netlify bot commented Dec 30, 2024

Deploy Preview for quicksnip ready!

Name Link
🔨 Latest commit 32c722c
🔍 Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/67731391fcdba30008ab8a73
😎 Deploy Preview https://deploy-preview-29--quicksnip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

"code": [
"def count_vowels(s):",
" vowels = 'aeiouAEIOU'",
" return len([char for char in s if char in vowels])",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of having both uppercase and lowercase vowels in your variable you could convert the char to lower case, it would be a little easier to understand

@Mathys-Gasnier Mathys-Gasnier added update needed Code needs to be updated. Snippets labels Dec 30, 2024
@Mathys-Gasnier Mathys-Gasnier merged commit 1124c4d into quicksnip-dev:main Dec 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Snippets update needed Code needs to be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants