Skip to content

Commit

Permalink
Reformatted file using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
TibyanKhalid committed Jan 10, 2025
1 parent 1f3dfcc commit f729ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solutions/is_palindrome.py
Original file line number Diff line number Diff line change
@@ -32,9 +32,9 @@ def is_palindrome(string):
"""
# Defensive assertions
assert isinstance(string, str), "Argument(Input) must be a string"
assert (
len(string) <= 100
), "Argument (Input) is too long, max allowed length is 100 characters"
assert len(string) <= 100, (
"Argument (Input) is too long, max allowed length is 100 characters"
)

if string == string[::-1]:
return "Palindrome"

0 comments on commit f729ab2

Please sign in to comment.