Skip to content

Commit b291d90

Browse files
committed
Making the file more readable
1 parent 81c6717 commit b291d90

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

palindrome/palindrome.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ def palindrome_test(word):
1919

2020

2121
def main():
22-
test = palindrome_test(input("Type a word to test if it is palindrome: "))
23-
if test:
24-
print(f"The word is palindrome")
22+
is_palindrome = \
23+
palindrome_test(input("Type a word to test if it is palindrome: "))
24+
if is_palindrome:
25+
print("The word typed is palindrome")
2526
else:
26-
print(f"The word isn't palindrome")
27+
print("The word typed isn't palindrome")
2728

2829

2930
if __name__ == '__main__':

0 commit comments

Comments
 (0)