mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
e29024d14a
* Program to convert a given string to Pig Latin This is a program to convert a user given string to its respective Pig Latin form As per wikipedia (link: https://en.wikipedia.org/wiki/Pig_Latin#Rules) For words that begin with consonant sounds, all letters before the initial vowel are placed at the end of the word sequence. Then, "ay" is added, as in the following examples: "pig" = "igpay" "latin" = "atinlay" "banana" = "ananabay" When words begin with consonant clusters (multiple consonants that form one sound), the whole sound is added to the end when speaking or writing. "friends" = "iendsfray" "smile" = "ilesmay" "string" = "ingstray" For words that begin with vowel sounds, one just adds "hay", "way" or "yay" to the end. Examples are: "eat" = "eatway" "omelet" = "omeletway" "are" = "areway" * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pig_latin.py Added f-string * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pig_latin.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pig_latin.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update pig_latin.py * Update pig_latin.py * Update pig_latin.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com> |
||
---|---|---|
.. | ||
__init__.py | ||
aho_corasick.py | ||
alternative_string_arrange.py | ||
anagrams.py | ||
anagrams.txt | ||
autocomplete_using_trie.py | ||
barcode_validator.py | ||
boyer_moore_search.py | ||
can_string_be_rearranged_as_palindrome.py | ||
capitalize.py | ||
check_anagrams.py | ||
credit_card_validator.py | ||
detecting_english_programmatically.py | ||
dictionary.txt | ||
dna.py | ||
frequency_finder.py | ||
hamming_distance.py | ||
indian_phone_validator.py | ||
is_contains_unique_chars.py | ||
is_isogram.py | ||
is_pangram.py | ||
is_spain_national_id.py | ||
is_srilankan_phone_number.py | ||
is_valid_email_address.py | ||
jaro_winkler.py | ||
join.py | ||
knuth_morris_pratt.py | ||
levenshtein_distance.py | ||
lower.py | ||
manacher.py | ||
min_cost_string_conversion.py | ||
naive_string_search.py | ||
ngram.py | ||
palindrome.py | ||
pig_latin.py | ||
prefix_function.py | ||
rabin_karp.py | ||
remove_duplicate.py | ||
reverse_letters.py | ||
reverse_long_words.py | ||
reverse_words.py | ||
snake_case_to_camel_pascal_case.py | ||
split.py | ||
string_switch_case.py | ||
text_justification.py | ||
top_k_frequent_words.py | ||
upper.py | ||
wave.py | ||
wildcard_pattern_matching.py | ||
word_occurrence.py | ||
word_patterns.py | ||
words.txt | ||
z_function.py |