function isPalindrome(str)
    str = str:gsub('%s', ''):lower()
    return str == str:reverse()
end

local input = "A man a plan a canal Panama"
if isPalindrome(input) then
    print("It's a palindrome!")
else
    print("It's not a palindrome.")
end

Testing out a new voting system of using strawpoll so that vote totals can be hidden. A thing I noticed in some of the previous rounds was that people would pile on to the same option. Loses a bit of the ease of vote but shouldnt be too bad since you can just instantly vote after you go to the site

You can vote for what you think it is here: https://strawpoll.com/xVg7j6Q5Rnr

Voting ends in 12 hours and then ill post here with the results. You can talk about it below but if you want to talk about the correct answer put it in spoiler tags

  • Ategon@programming.devOPM
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago
    Click to show answer

    The answer is Lua! The majority of people got it right (16/20 - 80%)