Answered step by step
Verified Expert Solution
Question
1 Approved Answer
problem 3,4. Python Problem 3. The task of this exercise is to evaluate strings from the Fake Turkish language and tell if the harmony rule
problem 3,4. Python
Problem 3. The task of this exercise is to evaluate strings from the Fake Turkish language and tell if the harmony rule is violated or not. In Fake Turkish, vowels can be front or back. back =["a","1","o","u"] Within the same word, all vowels must be either all front or all back. nekilm good almi rdum good zkanm bad You are given the following list of Fake Turkish words. In [ ] : fake_turkish = ["nekilm", "almrdum", "zkanm", "karokum", "almalar", "dkuln"] Write a code that scans the fake_turkish list, and generates a dictionary where each key is a word in the list, and each value is True or False depending on whether the word follows the harnony rule or not. Expected output: \{'nekilm': True, 'almrdum': True, 'zkanm': False, 'karokum': True, 'almalar': True, 'dkuln': False\} Remember: Your code must be generalizable beyond this specific examplel I.e. I might test it on a different list of words and it should still workl In [ ] : Problem 4. Write a cade that asks user for a word and tells if that word is a palindrome. Palindrome is a word that reads the same backwards as forwards, for example, "rotator', 'kayak', 'mom', "level'. In [ ]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started