DEV Community

Discussion on: Monthly Challenge #1: Palindrome 🔤

Collapse
 
frederik_vl profile image
Frederik Van Lierde

Why only Python, why not open to all coding languages ;)

Ex. Solution in C#

public static bool IsPalladium(this string text)
        {
            return text.SequenceEqual(text.Reverse());
        }
Enter fullscreen mode Exit fullscreen mode
Collapse
 
sonnynomnom profile image
Sonny Li Codédex

True! Only doing it for Python for now since codedex.io only has Python :(

Also, one line answer! 🙌 Shared the the team!

Collapse
 
frederik_vl profile image
Frederik Van Lierde

I adore one line functions ;)