Frage im Vorstellungsgespräch bei VAST Data

Check if a string or a number is a palindrome (python)

Antwort im Vorstellungsgespräch

Anonym

21. Mai 2024

return True if list(str(s)) == list(reversed(str(s))) else False