formating fixed

This commit is contained in:
surister 2019-10-22 09:23:31 +02:00
parent cd1f0db6ff
commit 4b245d96f9

View File

@ -1752,14 +1752,17 @@ set([food for bro in x for food in bro['food']])
<summary>How to reverse a string?</summary><br><b> <summary>How to reverse a string?</summary><br><b>
Shortest way is: <code>my_string[::-1]</code> but it doesn't mean it's the most efficient one. <br> Shortest way is: <code>my_string[::-1]</code> but it doesn't mean it's the most efficient one. <br>
Cassic way is: ``` Cassic way is:
```
def reverse_string(string): def reverse_string(string):
temp = "" temp = ""
for char in string: for char in string:
temp = char + temp temp = char + temp
return temp return temp
```
</b></details> </b></details>
<details> <details>
<summary>Write a function to determine if a given string is a palindrome</summary><br><b> <summary>Write a function to determine if a given string is a palindrome</summary><br><b>
</b></details> </b></details>