Update README.md
Browse files
README.md
CHANGED
@@ -181,13 +181,6 @@ print(is_palindrome(12321))
|
|
181 |
# In the given example, the number 12321 is a palindrome, so the function returns True.
|
182 |
```
|
183 |
|
184 |
-
The function `is_palindrome` takes a number as input and converts it into a string using the `str()` function. It then checks if the string is equal to its reversed version (`str_num[::-1]`). If they are equal, it means the number is a palindrome and the function returns `True`. Otherwise, it returns `False`.
|
185 |
-
|
186 |
-
In the example code, we test the function with the number `12321`. The function call `is_palindrome(num)` returns `True` because `12321` is a palindrome. Finally, the result is printed to the console.
|
187 |
-
|
188 |
-
I hope this helps! Let me know if you have any further questions.
|
189 |
-
```
|
190 |
-
|
191 |
## Training Details
|
192 |
|
193 |
### Training Data
|
|
|
181 |
# In the given example, the number 12321 is a palindrome, so the function returns True.
|
182 |
```
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
## Training Details
|
185 |
|
186 |
### Training Data
|