Skip to content

Commit 18a34ec

Browse files
author
Christian Bender
committed
removed variable
1 parent f3d8a24 commit 18a34ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Palindrome_Checker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
phrase = givenPhrase
1616

1717
string = phrase.lower()
18-
reversedString = reversed(string)
1918

20-
if string == reversedString:
19+
if string == string[::-1]:
2120
print("\nWow!, The phrase is a Palindrome!")
2221
else:
2322
print("\nSorry, The given phrase is not a Palindrome.")

0 commit comments

Comments
 (0)