Create a dictionary to hold the terms to traslate

Assignment Help Basic Computer Science
Reference no: EM13784131

Using Python, implement a translator. Need to create a dictionary to hold the terms to traslate or looking up. The dictionary can translate languages, slang terms, error messages, present course descriptions for classes, provide definitions for diesases, give reviews of restaurants or movies....your choice.

For example (translator illustration):

Welcome to the translator!

0=Quit

1=look up a term

2 =Add a term

3=Redefine a term

4=Delete a term

Choice: 1

What wouldyou like to have translated? 404

404 means clueless. Web error message 404 means page not found.

Steps....

Createa dictionary, and display the dictionary inintially.

Give the user instruction on what to enter

Access dictionary values, using a key to reteive values

Test a key with the in operator before retriving a value.

Use the get() method to retrive a value

4. Understand dictionary requirements:

A dictionary can't contain multiple item with the same key.

A key must be immutable. It can be a string, number or a tuple. [ A key must be immutable to make sure it is not changed to a key which is already in the dictionary.]

Values do nt have to e unique. Values can be nutable or immutable, whatever you'd like.

Reference no: EM13784131

Questions Cloud

Do you all know what an executive order is : Do you all know what an executive order is? An executive order is one that is issued by a president. They bind agencies and establish policies. It is important to have a basic understanding of how laws and policies function in society and especial..
How do political issues get framed in the news media : How do political issues get framed in the news media? Choose a political issue, do a content analysis of 10 news paper articles or TV news transcripts that discuss that issue.
Influence of heredity and environmental factors : Discuss protective steps that may be taken to prevent the damaging effects of teratogens, emphasizing the effects of alcohol use by the expectant mother.
Key differences between primary and secondary programs : Describe the key differences between primary, secondary, and tertiary prevention programs. Discuss the overall effectiveness of these types of programs
Create a dictionary to hold the terms to traslate : A dictionary can't contain multiple item with the same key. A key must be immutable. It can be a string, number or a tuple. A key must be immutable to make sure it is not changed to a key which is already in the dictionary.
Health care laws or regulations : What are ways that health care laws or regulations affect your health care organization or a health care organization with which you are familiar? (Michigan)
Distinguish between training and development of employees : Distinguish between training and development of employees.
What is the irac analysis method for given case : What is the irac analysis method for this case: robert john barclayjr., respondent, v. TECHNO-DESIGN, INC., Appellant, et al.,
Briefly define the various types of investigations : Briefly define the various types of investigations conducted by security and protective services and the statues that govern the conduct of investigative agents

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discuss two major issues involved with acquiring systems

Discuss two major issues involved with acquiring systems and two major issues commonly faced when maintaining them. Address how each can be minimized or overcome.

  Create and conducting an online questionnaire

Create a free SurveyMonkey or QuestionPro online questionnaire account. If you did not create one, revisit the Week 5 e-Activity to create an account before attempting this assignment.

  Desirable characteristics is robustness of the operating

Regardless of the operating system used, from MS-DOS to Macintosh OS X, from Windows to Linux, to OS/400, one of the key desirable characteristics is robustness of the operating system.

  Explain compiler assign subcomputations

How would you have compiler assign 14 subcomputations to 15 cores? Describe briefly. (Symmetry means there is no unique answer).

  How would the physical security aspect of protecting compute

How would the physical security aspect of protecting computer assets relate in this case? Make sure to give some examples.

  Your manager has decided that the throughput

Your manager has decided that the throughput of your file server can be improved by replacing your old SCSI-2 host adapter with a "fast and wide" SCSI-3 adapter. It has also been decided that the old SCSI-2 drives will be replaced with "fast and w..

  File name according to the section of the assignment

File name according to the section of the assignment

  The most frequent cause of it implementation failures

An evaluation of what you think is the most frequent cause of IT implementation failures. Justify your answer. Explain how change in management can help solve software implementation failures.

  What is the binary number which represents a decimal

What is the binary number which represents a decimal 4 and If a digital system has 5 inputs, how many possible input combinations are there?

  The information technology (it) manager

The information technology (IT) manager

  Store configuration information on motherboard in cmos

Why do you believe the trend is to store configuration information on the motherboard in CMOS setup rather than by using jumpers or switches?

  Consider our standard model of the economy

Consider our standard model of the economy, with two goods (wheat and cloth) and two factors (land and labor). Suppose a decrease now occurs in the relative price of wheat. What are the short run effects on the earnings of labor employed in the wheat..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd