Codehs 9.4.5 Phone Book. Anyone have the answers?

Answers

Answer 1

Answer:

The program is as follows:

phonebook = {}

while True:

   entry_name = input("Name: ")

   if entry_name == " ":

       break

   elif entry_name in phonebook:

       print(entry_name+" exists with the phone number "+str(phonebook[entry_name]))

   else:

       entry_number = input("Number: ")

       phonebook[entry_name] = entry_number

print(phonebook)

Explanation:

This creates an empty dictionary for phonebook

phonebook = {}

This loop is repeated until it is exited by the user

while True:

Prompt for name

   entry_name = input("Name: ")

If name is empty

   if entry_name == " ":

Exit the loop

       break

Else if name exists in the phonebook

   elif entry_name in phonebook:

Notify the user with the name and the phone number

       print(entry_name+" exists with the phone number "+str(phonebook[entry_name]))

If otherwise,

   else:

Prompt the user for phone number

       entry_number = input("Number: ")

Save in the dictionary

       phonebook[entry_name] = entry_number

Print the phonebook

print(phonebook)

Answer 2

Answer:

my_dictionary = {}

while True:

   name = str(input("Enter a name: "))

   if name == "":

       break

   elif name in my_dictionary:

       print("Phone Number: " + my_dictionary[name])

   else:

       phone_number = input("Enter this person's number: ")

       my_dictionary[name] = phone_number

print(my_dictionary)

Explanation: code hs


Related Questions

Hello, I am smart without showing off and I will help you with your homework and tell you the correct answers (◠ᴥ◕ʋ).​

Answers

Answer:

HII CSN U ANSWER MY MATH QUESTION

Which of the following is NOT present on the Title Bar?​

Answers

Answer:whats the question

Explanation:(pls dont report me as soon as u tell me the question i will edit my answer and answer correctly)

Which of the following is referred to as "keeping up with the Joneses"?

Answers

Answer:

This phrase basically means keeping up with the trend. You can get an Android for cheaper but you get the high quality iPhone because it appears rich and overall, better. But it's used a lot to say, "you're wasting money"

Which of the following is not a key component of a structure?
A. Name
B. Properties
C. Functions
D. Enumerations

Answers

Answer:

D i think

Explanation:

What the price of XRP right now??????

Answers

Answer:

$0.579

Explanation:

I'm pretty sure that's the answer.

You can set up an AutoFilter to find specific formatting.
True or False
(Microsoft Excel)

Answers

Answer:

I think you can, so id say its true.

Explanation:

Which of the following is a true statement about parameters in data management? Check all that apply.

Answers

Answer:

Parameters are used to limit or refine results.

A multiply parameter contains more than one condition to locate, sort, or filter data.

Searching for the number 12 in your spreadsheet is an example of a simple parameter.

Explanation:

Answer:

1,3,4

Explanation

"love takes off masks we fear we cannot live without and cannot live within" what is the meaning to this quote?​

Answers

Answer: It's similiar to the quote "You bring out the best of me" When you're in love, you feel the need to be yourself and that you don't have to hide it.   Love brings out the real you.

Hope this helps.

Explanation:

3
Type the correct answer in the box. Spell all words correctly.
Which program can damage your computer?
can cause damage to my computer.
Reset
Net

Answers

Answer: Look in /Library/LaunchDaemons for a plist file that is out of place. It may actually have ActivityInputd in the name.

If there is, move it to the Trash.

Open Network System Preferences, select the service you use to connect to the Internet, and click the Advanced button.

Click on the Proxies tab and uncheck any of the proxies listed in the “proxies to configure” list.

Restart.

Explanation:

Anyone who know how to use canva .com please make a logo of the name : Deadly Sins

Answers

Answer:

Yes ma'am as in the anime?

Explanation:

Cuz there's a anime show called 7 deadly sins or just deadly sins?

Answer:

hello give the person above brainlist

Explanation:

why is it necessary to have usernames and passwords if one is working on a network?​

Answers

Answer:

So nobody finds and uses your personal information

PLEASE HELP Type the correct answer in the box. Spell all words correctly. Ross wants to add a graph from a text file format into his database. Which feature will enable him to add the graph in his database? Ross can use the______data feature to add the graph in his database.

Answers

Answer:

the answer to your problem is (insert)

Explanation:

Click Chart under the Illustrations group on the Insert tab.The Insert Chart dialogue box's arrows can be used to cycle through the various chart kinds.Click OK after selecting the type of chart you like.

What insert data feature to add the graph?

Select Data by selecting with the right mouse button on the chart. The Select Data Source dialogue box appears on the worksheet where the chart's source data are placed.

Click in the worksheet, then click and drag to choose all the data you wish to use for the chart, including the new data series, while keeping the dialogue box open.

The Insert SQL command is used to add new records or data to tables. Because it is used to alter database data, it is seen as falling within the umbrella of statements known as Data Manipulation Language (DML).

Therefore, insert data feature to add the graph in his database.

Learn more about insert data here:

https://brainly.com/question/14331259

#SPJ2

Theo would like to apply formatting to record data based on values in comparison with values in other fields. Which option should he use?

Conditional Formatting
Access Rules
Expression Builder
Field Validation Rules

Answers

Answer:

Conditional Formatting

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. These records are stored and communicated to other data when required or needed.

Conditional formatting is a feature found in a lot of spreadsheet software applications such as Microsoft Excel and it avails end users the ability to apply specific formatting options to cells based on certain defined criteria.

Basically, it is used for highlighting, emphasize, comparing or differentiating between data (information) stored in a spreadsheet document i.e data values that are lesser than or greater than a specificied value.

In this scenario, Theo would like to apply formatting to record data based on values in comparison with values in other fields. Thus, the option he should use is conditional formatting.

Answer:

A

Explanation:

You've just received an e-mail message that indicates a new serious malicious code threat is ravaging across the Internet. The message contains detailed information about the threat, its source code, and the damage it can inflict. The message states that you can easily detect whether or not you have already been a victim of this threat by the presence of the three files in \Windows\System32 folder. As a countermeasure, the message suggests that you delete these three files from your system to prevent further spread of the threat. What should your first action based on this message be?a. Perform a complete system backup.b. Verify the information on well-known malicious code threat management web sitesc. Distribute the message to everyone in your address book.d. Reboot the system.e. Delete the indicated files if present

Answers

Answer:

B.) Verify the information on well-known malicious code threat management web sites

Explanation:

Of course, you should verify the message with reliable sources before taking any actions that could impact your computer. Even if the message seemed legit, it telling you to fiddle with the Windows system folder is a red flag.

Verify the information on well-known malicious code threat management web sites. The correct option is b.

What is malicious code threat?

The threat posed by malicious code to application security cannot be effectively addressed by traditional antivirus software on its own.

Attack scripts, viruses, worms, Trojan horses, backdoors, and malicious active content are all examples of the broad category of system security words known as harmful code.

Malware attacks are frequent cyberattacks in which the victim's system is compromised by malware, which is typically malicious software.

Ransomware, malware, command and control, and other specialised sorts of attacks are all included in malicious software, sometimes known as viruses.

The notification advises you to remove these three files from your system as a countermeasure to stop the threat from spreading further, but you should first double-check the information on reputable harmful code threat management websites.

Thus, the correct option is b.

For more details regarding malicious attacks, visit:

https://brainly.com/question/13137381

#SPJ5

Task 1
Take a look at the pictures below.
Picture B
Picture A
1. Describe the two images.
2. Does the image show observance of occupational health and safety
procedures while doing the computer-aided drawing?
6​

Answers

Answer: yes they do

Explanation: they both show the same references.

how old is the letter 3 on its 23rd birthday when your car turns 53 and your dog needs gas and your feet need lave then when is your birthday when your mom turns 1 and your younger brother is older then you

Answers

Answer:

ummm...idr.k..u got me....wat is it

Explanation:

What are inserted to show the total number of pages in Word?

Answers

Answer:

Include total number of pages in the page number

Go to Insert > Page Number.

Do one of the following: Select Current Position if you have a header or footer. Select a location if you have no header or footer yet.

Scroll until you see Page X of Y and select a format.

Select Close Header and Footer, or double-click anywhere outside the header or footer area.

Use the drop-down menus to complete statements about back-up data files.

The default storage location for back-up data files is in the local
folder.

PST files are not
in the Outlook client, and users must
the files

to make them usable.

Answers

Answer:

the third one trust me

Explanation:

Answer:

Documents

accessible

import or export

Explanation:

Edge, just did it

2 When you add text with the Text Tool, __________. the text is added to the current layer a new floating selection layer is created the text is added to every layer a new layer is created

Answers

Answer:

A new floating selection layer is created

Explanation:

In a graphic design software for example like CorelDraw, if  a text tool is used to add text, a new floating selection layer is created in which, the text is inserted.

Before using an advanced filter, you must first set up a(n) ________.
(Microsoft Excel)

A. Structured Range
B. AutoFilter
C. Slicer
D. Criteria Range

Answers

the answer is b autofilter

Write a program in Python which prints your name, surname and class.

Answers

Answer:

print(name + "\n" + surname + "\n" + class)

Explanation:

not enough information is given but this will print those three variables with a newline between each.

What is the difference between Input, Output, and Storage Devices?

Answers

Answer:

Explanation:

There are three different types of peripherals: Input, used to interact with, or send data to the computer (mouse, keyboards, etc.) Output, which provides output to the user from the computer (monitors, printers, etc.) Storage, which stores data processed by the computer (hard drives, flash drives, etc.)

There are three different types of peripherals: Input, used to interact with, or send data to the computer (mouse, keyboards, etc.) Output, which provides output to the user from the computer (monitors, printers, etc.) Storage, which stores data processed by the computer (hard drives, flash drives, etc.)

Explain how malware can be used in cyber warfare or a cyber terrorism attack on a country?

Answers

Answer:

Malware can be utilized to damage infrastructure that utilizes computers. It can manipulate what a computer is doing. In this way, a piece of malware could be designed to target government operations, such as government office computers, and then steal and wipe data from a computer. In other ways, a piece of malware could target the water supply control computers, and removing safety features, or target the power grid. This is why infrastructure necessary for day to day life and survival should be separate from the Internet, which can remove a major vulnerability.

Choose the correct term to complete the sentence.

______ uses objects that represent classes to manage, manipulate, and store data.

•Object-defined programming

•Object-oriented programming

•Oriented programming

Answers

Answer:

Object-oriented programming

Explanation:

When used in object-oriented programming , a class is a factory for creating object. An object is a collection of data and behavaiors that represent some entity(real or abstract).

Answer: Object-oriented programming

Explanation: got it right on edgen

Question
You want to draw a rectangle over the moon you added to your slide and then move it behind the moon. You want it to look like a frame. What ribbon tab would you click to find the tool to add the rectangle?

Animations
Insert
Design
Home

Answers

Answer: Insert  :-) !

Explanation:

the taskbar contains what

Answers

Answer:The taskbar is anchored to the bottom of the screen by default, but can be moved to any screen side, and contains the Start button, buttons for pinned and running applications, and a system tray area that contains notification icons and a clock.

Explanation:

What are your thoughts on the last nintendo direct

Answers

Answer:

I don't know? How do you feel about them?

Explanation:

Answer:

Wait, what's that-

Explanation:

Who else hates brainly cause they took over 400 points out of my other account and left me at -324 points so copy and paste this every where

Answers

SAME! Instead, it was 630!! It was so unfair tbh, and I did nothing wrong.

Answer:

That's terrible :(

Explanation:

a*=++a/6+b++ 3 if a=3,b=4​

Answers

Answer:

[tex]a=22.5[/tex]

Explanation:

Given

[tex]a*=++a/6+b++3[/tex]

Required

The result when [tex]a=3[/tex] and [tex]b=4[/tex]

Analyzing the given instruction

a*=(++a)/(6)+(b++3)

Single out and solve the expressions in bracket

(++a) = a -- When the ++ operator appears before an operand, it is called pre increment. meaning that the operation will be done before the operand will be incremented.

So: in this case: ++a = a

[tex]b++3 = b + 3[/tex]

The operator, as used in that statement is the same as: b + 3.

So:

[tex]a*=(++a)/(6)+(b++3)[/tex]

[tex]a*=(a)/(6)+(b+3)[/tex]

[tex]a*=(3)/(6)+(4+3)[/tex]

[tex]a*=0.5+7[/tex]

[tex]a*=7.5[/tex]

The above expression is calculated as:

[tex]a=a*7.5[/tex]

So:

[tex]a=3*7.5[/tex]

[tex]a=22.5[/tex]

why is page formatting important??​

Answers

Answer:

Perhaps one of the most important things you can learn in Microsoft Word is how to format your page with elements such as margins and page breaks. Formatting your pages makes them look more attractive and makes them easier to read.

Answer:

Formatting is important for two reasons: It makes your essay look like an essay (rather than a letter or a note to a friend). It helps to make your essay more readable.

Explanation:

Other Questions
4. Uso ___ para comer la sopa caliente.A. la servilletaB. a tazaC. el tenedorD. la cuchara What is the weight of an astronaut with a mass of 75 kg on the moon? The gravitational field strength on the moon is 1.6 Nkg-1. What is the answer to questions 5 + 3? Please answer due midnight. One way chemical weathering shapes landforms is by?please answer quick Koczela Inc. has provided the following data for the month of May: Inventories: Beginning Ending Work in process $ 28,000 $ 23,000 Finished goods $ 57,000 $ 61,000 Additional information: Direct materials $ 68,000 Direct labor cost $ 98,000 Manufacturing overhead cost incurred $ 74,000 Manufacturing overhead cost applied to Work in Process $ 72,000 Any underapplied or overapplied manufacturing overhead is closed out to cost of goods sold. The cost of goods manufactured for May is: IS anyone in FLVS?7th grade? When you do something anaerobic, your body makes a natural chemical called __________ that is like emergency energy for your muscles.Group of answer choiceslactic acidoxygentestosteronesweat I RLLLLYYY NEED HELP ASAP ILL GI S BRAINLIESTmr. torres ordering 250 School t-shirts to sell in a school store the t-shirts come in blue gray or red to know how many of each color to order mr. torres polled a random sample of students l.the results are in the table Which of the following sports originated in the 18th century in North America and has become known as "America's Favorite Pastime"?A. SoccerB. BaseballC. American FootballD. Basketball A child squeezes a pillow over his ears during and thunderstorm. Which wave interaction helps decrease the sound of the thunder? At UPS, a 12-step process prescribes how drivers should park their trucks, locate the package they are about to deliver, and step off the truck. UPS corporate manual carefully detail rules and routines and dictates where drivers should stop to get gas, how they should hold their keys in their hands, and how to lift and lower packages. What best describes the 12-step procedures at UPS? What are Fredrick Douglass position on slavery A school band went on a trip to a music festival. The band director was admitted for free, but it cost $100 to rent a bus for the trip and $4 for each student to get into the festival. The total cost of the trip was $244. Which equation can be used to find s, the number of students that went on the trip? Choose True or False for each equation for x = 6. Hummingbirds need large amounts of energy to flap their wings between 60 and 200 times per second. Their wings beat so rapidly that it is difficult to see them move. They often appear suspended in air for extended periods of time without changing their location. Hummingbirds have long bills and grooved tongues to reach into flowers to feed on flower nectar. They also feed on insects. The body system most directly interacting with the skeletal system to enable hummingbirds to beat their wings between 60 and 200 times per second is the- F. muscular system. G. integumentary system. H. endocrine system. J. circulatory system. A fish tank in the shape of a rectangular prism holds 30 cubic feet of water .the tank has a length of 5 feet and width of 3 feet . What is the length in depth,in feet ,of the tank ? A-2 B-6C-10D-15 Which pair of angles are complementary? 2 points Option 1 O Option 2 O Option 3 O Option 4 A student asks why the ashes from a fire have much lower mass than the wood that was burned. Which of the following is the correct answer to the student's question? For two vectors A and B.A+B =A-B, if and only if?? PLS HELP ME WITH THISAn express bus and local bus start out at 1rst street together. The express bus stops every 15 blocks. The local bus stops every 4 blocks. How many blocks will it be before there is a bus stop where both buses stop?HELPPP