From 4b245d96f9793f503c129cfb57d203b6e6efdfe7 Mon Sep 17 00:00:00 2001 From: surister Date: Tue, 22 Oct 2019 09:23:31 +0200 Subject: [PATCH] formating fixed --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ba9f66d..a00df5a 100644 --- a/README.md +++ b/README.md @@ -1752,14 +1752,17 @@ 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