Created
March 25, 2023 22:04
-
-
Save Kyonru/a27039a9d0eaca3d59f1db431ca7794c to your computer and use it in GitHub Desktop.
Twitch AI Completion 2023-03-25T22:04:37.912Z - https://www.twitch.tv/kyonru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def es_palindromo(num): | |
return str(num) == str(num)[::-1] | |
def numeros_palindromos(minimo, maximo): | |
palindromos = [] | |
for num in range(minimo, maximo+1): | |
if es_palindromo(num): | |
palindromos.append(num) | |
return palindromos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment