Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Kyonru/a27039a9d0eaca3d59f1db431ca7794c to your computer and use it in GitHub Desktop.
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
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