Question 8 Not complete Marked out of 6.00 Flag question Write a function is_palindrome (x) that returns the string "Yes
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am
Question 8 Not complete Marked out of 6.00 Flag question Write a function is_palindrome (x) that returns the string "Yes
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