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
Title: Code Quiz Time β Can You Answer This?
Post: Question:
What will be the output of this Python code?
Options:
A. [1], [1]
B. [1], [1, 1]
C. Error
D. None of the above
Comment your answer & why!
First 3 correct replies get a shoutout on the channel!
#PythonQuiz #CodeChallenge #StudentsEngage@Projectwithsourcecodes
Post: Question:
What will be the output of this Python code?
def func(x=[]):ο»Ώ
x.append(1)
return x
print(func())
print(func())
Options:
A. [1], [1]
B. [1], [1, 1]
C. Error
D. None of the above
Comment your answer & why!
First 3 correct replies get a shoutout on the channel!
#PythonQuiz #CodeChallenge #StudentsEngage@Projectwithsourcecodes
π Evening Task for Students! Letβs Practice! π¨βπ»π§
Test your skills with this coding challenge:
πΈ Python Challenge
Write a Python function to check if a given number is Prime or not.
β Bonus: Optimize it for performance!
def is_prime(n):
# Your code here
π¬ Drop your answer in the comments or DM us to get your code featured! π₯
π Want more challenges like this?
Explore: Updategadh.com
#PythonChallenge #EveningTask #StudentDev #Updategadh #ProjectWithSourceCodes #CodeChallenge #TelegramCoding
Test your skills with this coding challenge:
πΈ Python Challenge
Write a Python function to check if a given number is Prime or not.
β Bonus: Optimize it for performance!
def is_prime(n):
# Your code here
π¬ Drop your answer in the comments or DM us to get your code featured! π₯
π Want more challenges like this?
Explore: Updategadh.com
#PythonChallenge #EveningTask #StudentDev #Updategadh #ProjectWithSourceCodes #CodeChallenge #TelegramCoding