(Solved) : Palindromes Word Said Palindrome Spelt Forwards Backwards Example Eye Racecar Palindromes Q36078587 . . .
how to write this code in python?

Palindromes A word is said to be a palindrome if it is spelt the same forwards as it is backwards. For example, ‘eye’ and racecar’ are palindromes, but ‘hello and ‘book’ are not. 1 $ python3 palindrome . py 2 Enter a palindrome: racecar 3 racecar’ is a palindrome 4 Enter a palindrome: bat 5 bat is not a palindrome Afterwards, extend your program to accept palindromic sentences. A palindromic sentence is a string that is spelt the same forwards as backwards, considering only the alphabetic letters (in particular, ignoring spaces, punctuation and case). For example, “Madam, I’m Adam” is a palindromic sentence, as is “Never odd or even” Hello world” is not a palindromic sentence. 1 S python3 palindrome.py 2 Enter a palindrome: Eva, can I Stab Bats In A Cave? Eva, Can I Stab Bats In A Cave? is a palindromic sentence Linear Interpolation Write a program that will create a linear interpolation between two pixels. You are to read in two pixel values and generate a number of pixels specified between them. Input for the program 1 Enter the first pixel value: 0x002222 2 Enter the second pixel values: OxFFDD3:3 3 Enter the number of pixels to generate inbetween: 3 Using the 2 pixels specified it will generate 3 new pixels between the first and second pixel. You will need to round the difference of each channel between the larger and smaller pixel. You will find the channel (Red, Green, Blue) difference between the two pixels and divide by the number of total pixels create the new pixels 1 Colours: 2 0x002222 3 0x405126 4 0x80802a 5 0xc0af2e 6 Oxffdd33 Your program will use the smallest pixel (integer representation of the pixel) as the starting point Example 1 $ python3 ріх.ру 2 Enter the first pixel: 0x002222 3 Enter the second pixel: 0xFFDD33 4 Enter the number of colours to generate in between: 3 5 Colours: 6 0x002222 7 0x40S126 8 0x80802a 9 0xc0af2e 10 0xffdd33 Show transcribed image text
Expert Answer
Answer to Palindromes Word Said Palindrome Spelt Forwards Backwards Example Eye Racecar Palindromes Q36078587 . . .
OR