1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bixtya [17]
3 years ago
5

Contact list A contact list is a place where you can store a specific contact with other associated information such as a phone

number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 ACTIVITY 10.17.1: LAB: Contact list 0/10 main.py Load default template... 1'Type your code here.'""
English
1 answer:
Gemiola [76]3 years ago
3 0

Answer:

Explanation:

s = input()

name = input()

splits = s.split(" ")

i = 0

for i in range(len(splits)):

   if(splits[i] == name):

       break

print(splits[i+1])

Output:

Joe 123-5432 Linda 983-4123 Frank 867-5309

Frank 867-5309

Process finished with exit code 0

You might be interested in
Should non- vegetable food be banned in in our country
Anna71 [15]

4:horse

5:spider

and no

7 0
3 years ago
Read 2 more answers
Who is the antagonist of To Kill A Mockingbird?
Vinvika [58]

Bob Ewell is the antagonist.

4 0
3 years ago
Read 2 more answers
Which best explains this excerpt's purpose in the novel's plot structure?
strojnjashka [21]
<span>They contribute to the rising action by revealing additional information about the characters of the Lebrun brothers.</span>
6 0
3 years ago
In Snow-Bound, where does the speaker's sense of hope come from?
zubka84 [21]

In Snow Bound the authors sense of hope came from his family

Explanation:

This is a long narrative poem written by John Greenleaf Whittier recalling the incidents that happened during a snow storm. In this poem he describes how his family was hit by snow storm and then eventually snowbound and the consequences which caused them to be shut off from the entire world.

At first when the snow storm hailed the family was threatened and they planned ways to clear the huge piles of snow from their house but as days passed on it became more severe. The family started to read stories, remain calm and they found the situation much pleasing and they started enjoying the snow rather than being depressed. They gathered the hope that they would remain alive but it was no so and it was only the author and his brother who survived

7 0
3 years ago
PLEASE ANSWER + BRAINLIEST!!!)<br><br> “I will forgive, I won't forget, but I will dead the issue”
Svetllana [295]
Is it saying that I’ll forgive you but I won’t forget but I’ll try to forget it the issue like if it never happened.
8 0
3 years ago
Other questions:
  • A ____ leaves questions unanswered.
    12·2 answers
  • I WILL GIVE BRAINLIEST!!! PLEASE HELP ME!!
    8·1 answer
  • Read the following passage from The Way to Rainy Mountain:
    9·2 answers
  • Which scenarios are considered ethically acceptable for journalists
    8·2 answers
  • How does Zaroff's attitude advance the plot of this passage? Question 7 options: Since Zaroff enjoys conversation with Rainsford
    13·2 answers
  • What does Odysseus do on the island of cicones that best shows the trait of leadership
    8·1 answer
  • How does Lady Macbeth influence Macbeth's decision to murder Duncan?
    14·1 answer
  • In the play romeo and juliet where different perspectives shown?
    12·1 answer
  • . Music (play, past perfect progressive) for hours at the party.​
    6·1 answer
  • How does Medea see herself at the beginning of the play? How does Medea see herself at the end of the play?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!