Search
X
Off
AutoSave
Assignment_3 (1) - Compatibility Mode
[email protected]
Share
Comments
File
Editing
Home Insert Draw Design Layout References Mailings Review View Help
Find
A^
A
Aa
10.5
Consolas
Normal
Replace
No Spacing
Heading 2
Heading 1
Editor
Add-ins
Sensitivity
Dictate
Paste
B
I
A
U
ab
v
X2
Select v
Font
Editor
[V
Add-ins
r
Voice
rs
Clipboard
Paragraph
Styles
Editing
Sensitivity
Problem 1.
Mr. Charles purchased some mutual funds and created a stack named Original by the ticker symbols
of those funds as shown below. Some of those mutual funds are from Fidelity investments. The ticker
symbols of only the Fidelity funds start with the letter 'F'. Write a python code to
i) put all the ticker symbols of Fidelity funds of the Original stack in a stack called Fidelity in the
same order in which they appeared in the Original stack (FSMEX at the top and FSELX at the
bottom) and
ii) put all the other ticker symbols in the Original stack in the same order in which they appeared in
the Original stack (CPOAX at the top and JAMFX at the bottom)
iii) Do everything using loop structure.
from array stack import ArrayStack as AS
Original = AS()
Fidelity = AS()
Helper = AS()
originat.push('JAMFX')
Original.push( 'FSELX')
Original.push 'FOCPX')
Original.push( 'AFOIX')
Original.push( 'TEFQX')
Original.push 'FSRPX')
Original.push ('MSSMX')
Original.push( FSCSX')
Original.push FSPTX')
Original.push( FCPGX')
Original.push 'MACGX' )
BE
Text Predictions: On
100
Focus
172 words
Accessibility: Good to go
Page of 2
2:56 AM
Q
III
Search
+
3/3/2024
Not the question you are looking for? Ask here!
Enter question by text
Enter question by image
Upgrade to Asksia Pro
Join a AskSia's Pro Plan, and get 24/7 AI tutoring for your reviews, assignments, quizzes and exam preps.