From b59c26f1cfb1600daaaa0878152c9d685bb047d5 Mon Sep 17 00:00:00 2001 From: surister Date: Tue, 22 Oct 2019 09:21:42 +0200 Subject: [PATCH] formating fixed --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d152ea3..ab9b7fb 100644 --- a/README.md +++ b/README.md @@ -1752,13 +1752,13 @@ set([food for bro in x for food in bro['food']]) How to reverse a string?
Shortest way is: my_string[::-1] but it doesn't mean it's the most efficient one.
-Cassic way is: +Cassic way is: ``` def reverse_string(string): temp = "" for char in string: temp = char + temp return temp -
+```
Write a function to determine if a given string is a palindrome