[Exceptions, Function calling another function] Write a function ticker() that first runs (calls) read_ticker() and then stores the returned dictionary. It then runs an interactive loop with the user in which the user is prompted for a company name. If the company name (key) is in the dictionary, then its ticker form and the IPO year is printed. Otherwise a warning is printed that the company name is not in the list. If the user just hits return without entering a name, the loop stops.




this is the function that needs to be called:
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'), '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d

Answers

Answer 1

def read_ticker():

   d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'),

        '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}

   return d

def ticker():

   di = read_ticker()

   while True:

       try:

           name = input("Enter the name of a company: ")

           if name == "":

               return

           print(di[name])

       except KeyError:

           print("Name not found! Please enter a valid name!")

ticker()

I hope this helps!


Related Questions

To what extent is cyberbullying experienced across the world?

Answers

Answer:

All around the world

Explanation:

Every were there’s tech.

why is a computer called diligent machine ?​

Answers

Computer is called diligent machine because it can perform the task repeatedly without loosing its speed and accuracy for a long time.

Wilma is looking for facts about social media for her research project. What fact should she use for her project? a Communicating with social media is hard b Social media is a great way to communicate. c Social media is fun and easy to use. d The minimum age for some social media sites is 13. please help me and i will give you 5 stars

Answers

Answer:

d.

Explanation:

Out of all of the options listed, the only choice that is actually a fact would be that the minimum age for some social media sites is 13. This is because this age restriction is not set by the social media sites but instead by the Children's Online Privacy Protection Act (COPPA) within the US. The other options are all personal opinion, the most accurate of which is that "Social media is a great way to communicate." which there can still be someone with an opposing argument which means that it is not factual but instead it is an opinion.

How many categories should Jane use to track multiple levels of information learned through a student survey on teachers at her school? a. One category per teacher c. As many categories as she needs to understand the results b. Only one teacher per category d. None of these Please select the best answer from the choices provided A B C D

Answers

Answer:

c. As many categories as she needs to understand the results

Explanation:

In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Answer:

i think its c because, In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Explanation:

what isa programming language

Answers

Answer:

programming language is a formal language comprising a set of instruction that produce various kind of out put.

Answer:

A programming language defines a set of instructions that are compiled together to perform a specific task by the CPU .hope it's helps you have a great day keep smiling be happy stay safe.

Which of the following is an example of a database?
A. the names and ages of children
B. the title of a book
C. a word that rhymes with bat
D. the name of the most recent U. S. president

Answers

A. The names and ages of children

Answer:

the names and ages of children

how to beat level 50 in give up robot 2

Answers

Answer:

just follow the steps and and become tough calm but tough

Identify 5 way computer are used in weather forecasting an traffic control​

Answers

Answer:

Computers are used for interpolating data, and analyzing very complicated data.

Explanation:

In forecasting we need to look at a lot of weather variables (temperature, dew point, pressure and wind speed to name a few). We only collect this data from weather observation sites which can be tens to hundreds of kilometers apart. In order to determine these values at locations between the observation sites we interpolate.

When you are forecasting you need look at a lot of data and determine what is going on to determine what is going to happen next. If humans did all the interpolating themselves for all the data they would never be able to issue the forecast in the time that is expected. Furthermore, now that we have very complicated values to analyze (vorticity for example) there is no way that a human can calculate the effect of all the various factors in play. A computer has to do it.

Computers are also required for using weather radar, and yes to a lesser extent satellite data.

can someone please explain binary addition to me? i have a test tomorrow yikes

Answers

Answer:

its easy

Explanation:

there are are 5 main rules

in binary there are 2 number 0 and 1

0 + 0 = 0

0 + 1 = 1

1+0=1

1+1=0 carry 1

e . g

1 1 1

1 0 1 0 1 0

+ 1 1 0 0 1 0

-------------------------

1 1 1 1 1 0 0

*in bold are the ones that you need to carry.

in decimal there are 10 possible numbers 0- 9

when you do 1 + 9 it becomes 10, this can be done easily, however if you do 1 + 9 in a table like above, you will get 0 for the first column and you will carry 1 to the next column .

in binary is the same idea but using on 2 numbers 1 and 0

e.g

1

1

+ 9

----------

1 0

*in bold are the ones that you need to carry.

hope it helps and good luck in your exam.

What am I doing wrong?

Answers

In your example, you're asking the user for a number and then you're setting total and nums equal to zero. This results in your first number being ignored by the program. I included the complete working code below:

num = int(input("Enter a number: "))

total = num

nums = 1

while (total <= 100):

   num = int(input("Enter a number: "))

   nums = nums + 1

   total = total + num

print("Sum: "+str(total))

print("Numbers Entered: "+str(nums))

I hope this helps!

Which of these are reasons to evacuate a building during an earthquake? Mark all that apply.
A. There is a water leak.
B. The building is on fire.
C. There is structural damage to the building like newly cracked walls.
D. There is a gas leak.

Answers

Answer:

D

Explanation:

Answer:

c, b

Explanation:

I am guessing those are correct I don't really know

3. You'd prefer to read this email on a larger screen, so you open your laptop. Your laptop display is quite flat. What kind of screen do you think it is?

Answers

Answer:

.....

Explanation:

Answer:

plasma Screens

Explanation:

Used for very large screens and some laptops which display ones screen Flat.

write a python program to print the following series 3..10..31..94......n​

Pls answer fast..

Answers

I've included my code in the picture below. Best of luck

Sam needs to create a spreadsheet for his coworkers. They will need to follow across a long row of data. Sam would like to make his spreadsheet easy to read. Sam should _____.

Answers

Complete Question:

Sam needs to create a spreadsheet for his coworkers. They will need to follow across a long row of data. Sam would like to make his spreadsheet easy to read. Sam should _____.

Group of answer choices

A. make some formatting changes such as adding a fill color to every other row.

B. change the text color to light green and change the fill color to red.

C. leave the spreadsheet without any format changes.

D. highlight the cells.  

Answer:

A. make some formatting changes such as adding a fill color to every other row.

Explanation:

A spreadsheet can be defined as a file or document which comprises of cells in a tabulated format (rows and columns) typically used for formatting, arranging, analyzing, storing, calculating and sorting data on computer systems.

Some examples of spreadsheet software applications are Microsoft Excel, Lotus symphony, iWork numbers, Google sheets etc.

In this scenario, Sam needs to create a spreadsheet for his coworkers. They will need to follow across a long row of data with informations such as name, age, gender, education, experience, address, date of birth, nationality, relationship status etc. Also, Sam would like to make his spreadsheet easy to read.

Hence, Sam should make some formatting changes such as adding a fill color to every other row by selecting the preferred row and choosing a specific color that he wants such as red, white, green, blue, yellow etc.

Basically, formatting a spreadsheet with different colors makes it easy to read and enhances quick location of specific information in the spreadsheet by the end users.

which gallery will allow a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation

Answers

Answer:

Picture Effects gallery.

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation. Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

To format an image on PowerPoint, you can either use the Artistic Effects or Picture Effects.

The Picture Effects gallery allows a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation.

Basically, the Picture Effects consist of the following preconfigured formatting styles; transparent shadow, soft edge, reflection, glow, 3-D rotation, metal frame, bevels, perspectives etc.

Answer: Picture Styles gallery

Explanation: He is correct he just typed it wrong.


Help me please I need the correct answe

Answers

Pretty much, yeah.

if it's wrong just pick false.

Where do high tides occur? (Select two.) WILLLL GIVVEEE BBRRAANNLLEESSTTTM PLSS AASSAAPP

only at the South Pole
on the side of Earth opposite the moon
on the side of the Earth facing the moon
only at the North Pole
at both the North and South Poles

Answers

Answer:

Maybe both?

Explanation:

High tides and low tides are caused by the Moon. The Moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the Moon and the side farthest from the Moon. These bulges of water are high tides. (hope this helps)

Answer:

its the last one, it happens on the side of the earth facing the moon and also the opposite side

The amount of data that can be stored on a disk depends in part on_____.
a.
the number of tracks on the disk
b.
the thickness of the magnetic coating
c.
none of the above
d.
the rotational speed of the disk

Answers

to what it seems like, it’s d

Please I need 26 examples of hybrid search engines?

Answers

Answer:

Google, Bing, Yahoo, Yandex, Duck Duck Go!, Baidu, Ask, Naver, Alta Vista, Hotbot, AOL, AllTheWeb, Exite, Mahalo.

what is the main difference between a search bar and a web browser

Answers

Answer:

i think a search is search bar is looking for application and files that are in the system while web browser is for searching things that are not in ur pc or laptop but searching thing i a good example google

What affect did the Scopes trial have on the school curriculum in Tennessee?
It changed the curriculum to include creationism in science classes.
It did not change the curriculum because Bryan died shortly after the trial.
It changed the curriculum to include evolution in science classes.
It did not change the curriculum because Scopes lost the case.

Answers

D)It did not change the curriculum because Scopes lost the case.

The effect that Scopes trial had on the school curriculum in Tennessee is that

It did not change the curriculum because Scopes lost the case.

The Scopes trial

The scopes trial was a trial that involved a high school teacher called Scopes and the government of the United States.

This trial took place at the time where the US was subject to very serious Christian beliefs.

The reason for the trials was that Scopes had taught evolution in the classroom.

Read more on the Scopes trial here:

https://brainly.com/question/874883

User can fill numbers in a column by using _______ command, ________ is a built-in formula in Excel to do calculations, Entering data into a cell means to _______ data into a cell, The MIN function displays the ________ value in a given list of values

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This question is about fill-in-the-blank. The correct options in these fill-in-the-blanks are given below:

User can fill numbers in a column by using Down, Right, Up, Left, Series and Justify command

You can use these commands to fill numbers in columns. You can find these commands in the HOME tab under the Editing group of commands.

AutoSum is a built-in formula in Excel to do calculations

Autosum is a built-in formula that helps you to perform calculations, such as to calculate sum, average, and to find the minimum and maximum value. You can find the AutoSum command in the Home tab under the Editing group of commands.

Entering data into a cell means to put/insert data into a cell.

The MIN function displays the minimum value in a given list of values.

You use the MIN() function to display the minimum value in a given list of values or in the columns.

Which MLA web source citations are formatted correctly? Check all that apply.
Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.
Herman, Barbara. “Where’s the Fire?” Newsweek. Newsweek, 24 Oct. 2013. Web. 25 Feb. 2014.
Niesen, Joan. “Learning to Cope: Disabled Vet Hunt Finds Freedom as Paralympic Skier.” Sports Illustrated. Web. 27 Feb. 2014.
A Mighty Girl. N.p., n.d. Web. 26 Feb. 2014.
Kloc, Joe. “Kepler Mission Finds Hundreds More Planets.” 2 Feb. 2014. Web. 25 Feb. 2014.

Answers

Answer:

Explanation:

A,B on exp.

The correct MLA web source citations are:

Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.

Others are:

Herman, Barbara. “Where’s the Fire?” Newsweek. Newsweek, 24 Oct. 2013. Web. 25 Feb. 2014.

What is MLA citation?

MLA in-text citation style is known to be a citation method that is often used in citing authors. Her one often uses the author's last name and the page number from where the work is taken from.

A good example of this  MLA web source citations is:

Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.

Learn more about MLA web source  from

https://brainly.com/question/26110488

#SPJ2

Match the type of multimedia artist to the description of the jobs they perform.

storyboard artist

background artist

special effects animator

multimedia designers

works with other animators to set

the scenes depicting the key

characters

arrowRight

works with various elements to

create content for web pages

arrowRight

creates key frames that depict

all the important scenes in the

story

arrowRight

provides visual enhancements

to make the action depicted

more interesting and appealing

Answers

Answer:

d or a

Explanation:

hope it helps

What would be the results if the Formula =2*C8+3*D9 is entered into a cell if the value displayed in C8 is 3,and the value in cell D9 is 2? Select one: a. 3 b. 18 c. 12 d. 25

Answers

Answer:

The correct answer is:

12 (c)

Explanation:

The codes as shown C8 and D9 represent cells in an Excel spreadsheet. the cell tags describe the column letter and row numbers. For instance; C8 means the 8th row in Column C, while D9 means; the 9th row in column D. In order to do mathematical functions with Excel, the formulae starting with an equal sign (=) like the one shown in this example are used. The function is solved as follows:

= 2*C8+3*D9

where:  

* = multiplication sign (×)

C8 = 3

D9 = 2

∴ 2*C8+3*D9 = (2 × 3) + (3 × 2)

= 6 + 6 = 12

∴ the result is 12

write important of ICT in personal life?

Answers

Answer:

ICT is a great impact for are daily lives. It can improve the quality of a human life. The reason why it can improve that, it’s because it can be used as a learning and education media, the mass communication media in promoting and campaigning practical and important issues, such as the health and social area.

Explanation:

Your company works with organizations located in other countries. What is this an example of

Answers

Answer:

Globalization

Explanation:

When other countries work with other firms, international trade which is on a global scale is taken into consideration, allowing goods and services to trade between each other.

Answer:

Globalization

Explanation:

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRIST AND CORRECT
How are blogs and wikis alike?


accessible 24/7

telecommunications technology

collaboration tool

available online

used for online dialog

increase business productivity

Answers

Answer:

accessible 24/7

available online

increase business productivity

telecommunications technology

Blogs and wikis alike because they are:

Accessible 24/7.Available online.Increase business productivity.Telecommunications technology.

What are blogs?

A blog is known to be a short word for  “weblog”. This is known to be a kind of an online journal that is also said to be an informational website where one can get Infor on different subject.

Conclusively, Note that Blogs and wikis alike because they are Accessible 24/7 and one can get any information they want from it to increase  business productivity.

Learn more about Blogs from

https://brainly.com/question/3653791

#SPJ2

Jack is using a document that has multiple references to his company as Company ABC, LLC. He would like to change these values to CompanyABC, LLC. What is the easiest way to do this?

Answers

Answer:

C. Press CTRL to access the Find and Replace dialog box.

Explanation:

yuh yuhuhu edge 2020 gang gang

_____moves the head to proper track

a.
Seek
b.
Data transfer
c.
Rotate
d.
Settle

Answers

to what it seems like the answer would be C
i believe the answer is C
Other Questions
HELPPP Solve for b 2 in A = h(b 1+b 2), if A = 16, h = 4, and b 1 = 3.b 2 = : What is the image after (3,7) is reflected over the x-axis?Brainly Why do phase changes occur?1. Compare: Set the Water temperature to 0 C and click Play. Observe the water molecules.Click Reset, set the Water temperature to 100 C, and click Play again.What do you notice? The water molecules are moving slightly faster at 100 C than at 0 C.[Note: This difference may be too small to observe easily.]2. Observe: Click Reset. The mean molecular speed of the water molecules is displayedbelow the container. Set the Water temperature to 0 C and Add/remove heat energy to400 J/s. Click Play.A. How does the mean speed of the water molecules change as they are heated?The average speed of water molecules increases as they are heated.B. Does the mean molecular speed change as much as the temperature as thewater heats up? Explain.Sample answer: For each degree of temperature change, the mean molecularspeed increases by about 1 m/s. At 100 C, the mean molecular speed is about17% faster than at 0 C.3. Explain: How is temperature related to the motions of molecules?The higher the temperature, the faster the molecules move.4. Observe: Click Reset. Set the Water temperature to 20 C and the Ice volume to 50 cc.Set Add/remove heat energy to 0 J/s. Click Play. How do the molecules in the liquidinteract with the molecules in the solid?The molecules of the liquid collide with the molecules of solid, gradually breaking the bondsbetween the molecules in the solid and causing the ice to melt. Happy Veterans Day! Remember to honor the people that honored us years ago and today. ~ In Loving Memory Of My Grandfather Who Served In The War~ How did learning about the French Revolution change the way you think about the roles of laws in society To convert 36 mL to L, you would move the decimal point ____ places to the ____. 2) Fill in the blanks with the following options.What was the environment of early earth like? Complete the statement below to answer the question.a)windb)elementsc)gasesd)inorganice)organicf)lightningg)primordial______seas absorbed______of the atmosphere, there was a heavy concentration of ultraviolet radiation from the sun, and frequent______strikes, and the environment was helpful in producing______molecules from______molecules. fast helpHow would you react if you were in terry fox position with no leg Consider generating length-7 strings of lowercase letters. How many strings are there that either begin with 2 consonants or end with 3 vowels The lines below are parallel. If the solid line has a slope of 1, what is theslope of the dashed line? please someone help me out on this what is 9- 3/1/3 + 1 ? what are two reasons why this Brooklyn Auxiliary group are anti-women's suffrage? Which of the following describes the Treaty of Versailles?AIt prevented the U.S. from joining the League of NationsBIt contributed to the start of WWII because it treated Germany so harshlyIt gave Britain and France control over GermanyD) It forced Russia to give up much of its land to Germany Cuanto es la derivada de x A midwifes qualification would most likely be abbreviated as _______. Lauren's friend asked her to come hang out this weekend with some people from the school tennis team. What question should Lauren ask to protect her health and safety? What will we be doing? HEL:PPPP What will you be wearing? Will I have any fun there? Will I like the people going? Identify the sustantivo in this sentence: Los libros son grandes.1. libros 2. son 3. Los 4. grandes help me please! this is timed A 10.0 cm3 sample of copper has a mass of 89.6 g. What is the density of copper?