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

  Chosen to enter a new person into the contact list

Contact list project where The user enters first name, last name, street address, email address, phone number and notes.

  How can organizations in a global market utilize enterprise

How can organizations in a global market utilize Enterprise Content Management technology to maintain governance and control over content in ensuring regulatory compliance

  Specifically, for the session long project for this module

Specifically, for the Session Long Project for this Module, you are to review the Mitnick Security Consulting website [available at http://mitnicksecurity.com/]. Kevin Mitnick was for a number of years one of the most successful bad-guy hackers in th..

  Question based on artificial intelligence

If the brain is a computer and the mind its workings, is this fitting analogy of the computer and its software? What would happen if we had dedicated computers with a huge number of neuron circuits?

  Lan device

Your wireless LAN device has just sent a request to send (RTS). What happens next?

  Recursive multiplication

Recursive Multiplication Write a main program that uses a recursive function. This function accepts two arguments into the parameters x and y.

  Workplace calls for a lot of planning

Installing Linux on somebody else's machine or in a location that is not your own workplace calls for a lot of planning.

  Write program mips assembly calculate fibonacci series

I want to write program in MIPS Assembly Language to calculate first 100 terms in Fibonacci series.

  Design concept in terms of the usability of the design

A justification for the design concept in terms of the usability of the design. You should explain why your decisions make sense and why your interface concept works for the application. Any preliminary designs can be included as an Appendix to th..

  Develop an entity-relationship diagram as a conceptual model

For the following data requirements analysis description, develop an Entity-Relationship Diagram as a conceptual model that captures all of the requirements to the fullest extent possible.

  Iris reviewed the scant stack of applications for the newly

Iris reviewed the scant stack of applications for the newly created security manager position and frowned. There should have been many more than just three applicants for the position. After the human resources incident earlier in the month, sh..

  Include a main routine that asks the user for input values

Your code should include a main routine that asks the user for input values of m and n and displays the result of the function call. The main routine should loop until the value that the function returns is zero.

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