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

  Calculate roots of function by newton-raphson approximation

Best known iterative method for calculating roots of a function f (that is, x-values for which f(x) is 0) is Newton-Raphson approximation.

  Business uses networks-computers-support business functions

Think about a business you are familiar with, one which urilizes networks and computers to support business functions. Make a list of ten important, specific items like computers, disks.

  Cloud computing compared to traditional computing

Cloud computing compared to traditional computing

  Xyz invitation printing have decided to merge into company

ABC Invitation Design and XYZ Invitation Printing have decided to merge into one company, A2Z Invitations. ABC is a virtual company with a proprietary website that allows customers to do some preliminary work on invitations and then consult with a de..

  Test pseudocode by creating test plans and desk checks

Write down pseudocode for main menu. Write pseudocode for options, only code to navigate menu is required. Sketch flowchart for a main menu.

  Final deliverable (network enterprise architecture plan

Part 1: Final Deliverable (Network Enterprise Architecture Plan) 1. Summarize network changes to network architecture. 2. Create a schedule of change milestones. 3. Include an EAP plan in your Network Enterprise Architecture Plan document.

  What ways itplanning help managers control situation

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer

  Create a worksheet that computes membership costs

Create a worksheet that calculates membership costs for Buff and Tuff Gym. You will create functions that determine costs based on a condition, lookup membership rates and fees, and calculate monthly payments. You will also create functions that ..

  Control signals and label

Draw a diagram showing how the 68000 processor connects to a 64 KWord (64KB even + 64 KB odd) RAM IC. Show all relevant address, data, and control signals and label them correctly. Also show the MAD (memory address decoder) in your circuit diagram.

  How long will it take to reach steady-state value

Investigate the effect of the parameter b on y(t). To do this, plot y versus t for several values of b on the same plot. How long will it take for y(t) to reach 98 percent of its steady-state value?

  Which tool would be best-suited for this

Your computer running Windows 7 is doing some very strange things with the operating system. You are fairly certain it is not a hardware issue. You need to try to get further insight into what is going on within the operating system. Which tool wo..

  Write a simple atm program in python

Write a simple atm program in Python. Ask the user to enter their account number, and then print the beginning balance.

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