mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Fixed grammar on Anagram Description (#5512)
Made the description more formal, also fixed a few grammatical issues.
This commit is contained in:
parent
629848e372
commit
0ca1279997
|
@ -5,7 +5,7 @@ wiki: https://en.wikipedia.org/wiki/Anagram
|
||||||
|
|
||||||
def check_anagrams(first_str: str, second_str: str) -> bool:
|
def check_anagrams(first_str: str, second_str: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Two strings are anagrams if they are made of the same letters
|
Two strings are anagrams if they are made up of the same letters but are
|
||||||
arranged differently (ignoring the case).
|
arranged differently (ignoring the case).
|
||||||
>>> check_anagrams('Silent', 'Listen')
|
>>> check_anagrams('Silent', 'Listen')
|
||||||
True
|
True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user