Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python 3.7.3 Write a function ticker() that first runs reads a txt file, and then stores the returned dictionary. It then runs an interactive

Use python 3.7.3

Write a function ticker() that first runs reads a txt file, 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.

>>> ticker()

Company name: Amazon.com

No ticker symbol on record for Amazon.com

Company name: Americao

No ticker symbol on record for Americao

Company name: Morningstar, Inc.

Morningstar, Inc. has ticker MORN. IPO: 2005

Company name:

>>>

nasdaq.txt : TFSC 1347 Capital Corp. 2014 TFSCR 1347 Capital Corp. 2014 TFSCU 1347 Capital Corp. 2014 TFSCW 1347 Capital Corp. 2014 PIH "1347 Property Insurance Holdings, Inc." 2014 FLWS "1-800 FLOWERS.COM, Inc." 1999 FCTY "1st Century Bancshares, Inc" n/a FCCY 1st Constitution Bancorp (NJ) n/a SRCE 1st Source Corporation n/a VNET "21Vianet Group, Inc." 2011 TWOU "2U, Inc." 2014 DGLD 3X Inverse Gold ETN Velocityshares n/a DSLV 3X Inverse Silver ETN Velocityshares n/a UGLD 3X Long Gold ETN Velocityshares n/a USLV 3X Long Silver ETN Velocityshares n/a JOBS "51job, Inc." 2004 SIXD "6D Global Technologies, Inc." n/a CAFD 8point3 Energy Partners LP 2015 EGHT 8x8 Inc n/a AVHI "A V Homes, Inc." n/a SHLM "A. Schulman, Inc." 1972 AAON "AAON, Inc." n/a ABAX "ABAXIS, Inc." 1992 ABY Abengoa Yield plc 2014 ABGB "Abengoa, S.A." 2013 ABEO Abeona Therapeutics Inc. n/a ABEOW Abeona Therapeutics Inc. n/a ABMD "ABIOMED, Inc." n/a AXAS Abraxas Petroleum Corporation n/a ACTG Acacia Research Corporation n/a ACHC "Acadia Healthcare Company, Inc." n/a ACAD ACADIA Pharmaceuticals Inc. 1985

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago