Title: Quick Code Challenge β Show Your Skills!
Post:
Letβs see who can crack this Python challenge first!
Problem:
Write a Python function to check if a number is a palindrome (same forward & backward).
Example:
121 β Palindrome
123 β Not a Palindrome
Bonus: Try without converting the number to a string!
Comment below your code or solution!
Iβll give shoutouts to the first 3 correct answers.
#CodeChallenge #Python #CollegeCoder
Post:
Letβs see who can crack this Python challenge first!
Problem:
Write a Python function to check if a number is a palindrome (same forward & backward).
Example:
121 β Palindrome
123 β Not a Palindrome
Bonus: Try without converting the number to a string!
Comment below your code or solution!
Iβll give shoutouts to the first 3 correct answers.
def is_palindrome(num):
# Your code here
#CodeChallenge #Python #CollegeCoder