Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

Students also viewed these Databases questions

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago