Welcome to Codédex's first ever Monthly Twitter Challenge! This one is created by our SWE Intern, @asiqurrahman. 🙌
Palindrome:
A word, sentence, or number that reads the same forward or backward (e.g., racecar, civic, and 121).
Challenge:
Create a Python function that:
- Takes in a string as a parameter.
- Checks if it's a palindrome.
- Returns
True
if it is orFalse
if it's not.
Requirements:
- 📦 Don’t use any packages.
- 💬 Make sure to comment the code.
Post your program screenshot in the Twitter thread.
And we will pick a random winner by noon this Friday. The prize is a free Codédex tee and bragging rights! 🏆
Update:
We have a winner to the Codédex Monthly Challenge: Palindrome! 🥁...
Congrats to Michael Gonzalez! 🇪🇨
The reasons being:
- Solution covers string & number
- Good comments
- Good breakdown of the functions
- First to post bonus
Here's the solution:
Top comments (10)
Why only Python, why not open to all coding languages ;)
Ex. Solution in C#
True! Only doing it for Python for now since codedex.io only has Python :(
Also, one line answer! 🙌 Shared the the team!
I adore one line functions ;)
I guess..
We have a winner to the Codédex Monthly Challenge: Palindrome! 🥁...
Congrats to Michael Gonzalez! 🇪🇨
The reasons being:
Here's the solution:
Excited to follow along with this thread and challenge series :)
Haha thanks Peter! 🤙
So cool! Can't wait to see all the solutions
Let's go Jerry!
nice