Page 1 of 1

Question 8 Not complete Marked out of 6.00 Flag question Write a function is_palindrome (x) that returns the string "Yes

Posted: Fri Jun 10, 2022 11:55 am
by correctanswer
Question 8 Not Complete Marked Out Of 6 00 Flag Question Write A Function Is Palindrome X That Returns The String Yes 1
Question 8 Not Complete Marked Out Of 6 00 Flag Question Write A Function Is Palindrome X That Returns The String Yes 1 (68.14 KiB) Viewed 63 times
Question 8 Not complete Marked out of 6.00 Flag question Write a function is_palindrome (x) that returns the string "Yes" if x (type int) is a palindrome, otherwise returns the string "No". An integer is a palindrome when it reads the same backward as forward. For example: Test Result print (is_palindrome (121)) Yes print (is_palindrome (123)) No print (is_palindrome (-121)) No print (is_palindrome (0)) Yes