Question: Please use python to solve this question. 3. Implement function reverse_int () that takes a three-digit integer as input and returns the integer obtained by

 Please use python to solve this question. 3. Implement function reverse_int

Please use python to solve this question.

3. Implement function reverse_int () that takes a three-digit integer as input and returns the integer obtained by reversing its digits. For example, if the input is 123, your function should return 321. You are not allowed to use the string data type operations to do this task. Your program should simply read the input as an integer and process it as an integer using operators such as // and %. You may assume that the input integer does not end with the 0 digit. >>> reverse_int (123) 321 >>> reverse_int (908) 809 4. Write a function is palindrome () that check a string as an input as argument and returns True or False indicating whether the string is a palindrome or not. A palindrome is a string that can be read the same way forward and backward. Your function does not need to convert between lower and upper case characters and needs to check only for an exact match including case. For example, the string 'madam' is a palindrome but the string 'Madam' is not. Your function should ask you to Enter any String and should print the string + is not palindrome or is a palindrome, e.g.: >>> Enter any String: Ottawa Ottawa is not a palindrome 5. Write the following functions. a. all_equal (x, y, z) (returning true if the arguments are all the same) b. all_different (x, y, z) (returning true if the arguments are all different) c. all_sorted (x, y, z) (returning true if the arguments are sorted, with the smallest one coming first)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!