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
valkas [14]
3 years ago
9

There is a file of a few Sean Connery movies on the internet. Each entry has the following form:

Computers and Technology
1 answer:
natulia [17]3 years ago
3 0

Answer:

filename = input("Enter file name: ")

movie_container = list()

with open(filename, "r") as movies:

   content = movies.readlines()

   for movie in content:

       holder = movie.split("\t")

       movie_container.append((holder[0], holder[1], holder[2], holder[3]))

movie_container = sorted(movie_container, key= lambda movie: movie[0])

for movie in movie_container:

   movie_stars = movie[3].split(",")

   name_split = [names.split(" ") for names in movie_stars]

   movie_stars.clear()

   name_split = sorted(name_split, key= lambda names: names[1])

   for name in name_split:

       full_name = " ".join(name)

       print( full_name)

       movie_stars.append(full_name)

   movie[3] = movie_stars

print(movie_container)

Explanation:

The python code uses the open function to open and read in the input file from the standard user prompt. The title of the movies and the stars are all sorted alphabetically and display at the output.

You might be interested in
Type 1 hypervisor:
user100 [1]

Answer:

Explanation:

BBBBBBBBBBBBBB

4 0
3 years ago
TRUE/FALSE. a good with many close substitutes is likely to have relativelyelastic correct demand, since consumers can easily ch
natta225 [31]

Yes, this is true. Close substitutes for a good will make the demand for that good more elastic, since consumers can easily switch to a different good if the price of the original good rises.

<h3><u>The Impact of Close Substitutes on Price Elasticity of Demand</u></h3>

The demand for a good with many close substitutes is likely to be relatively elastic. This is because when the price of the good increases, consumers can easily switch to one of the close substitutes, which limits the effect of the price increase on demand.

For instance:

  • If the price of a particular brand of cereal rises, consumers may decide to purchase a different brand of cereal as an alternative, rather than paying the higher price.

This ability to switch to a close substitute reduces the impact of the price increase on demand.

Elasticity is an important concept in economics and can be used to understand how prices and demand interact.

  • When demand is elastic, an increase in price will cause a large decrease in demand. This is because consumers have the ability to switch to close substitutes, which limits the effect of the price increase.
  • On the other hand, when demand is inelastic, an increase in price will cause only a small decrease in demand. In this case, consumers do not have close substitutes available, so they are more likely to continue purchasing the good despite the price increase.

Learn more about <u>Elasticity </u><u>of </u><u>Demand</u> at: brainly.com/question/5078326

#SPJ4

8 0
1 year ago
what will allow you to immediately exit the program without rebooting the computer, when you realize your browser is not respond
Vlada [557]

Answer:

the exit button on top right or x out of that certain tab

Explanation:

4 0
3 years ago
host b is sending an email intented for the user on host a to the mail server what protocol is being used to send the message
KatRina [158]

Answer:

SMTP

Explanation:

This is the SMTP or the Simple Mail Transfer Protocol. It is the push protocol and is used to send the mail message. Whereas POP3 and IMAP are meant for retrieving the message. These are the three main types of protocols associated with mail services. And the correct answer here is certainly the SMTP.

3 0
3 years ago
Routers do not forward broadcast packets.A. TrueB. False
mestny [16]
The answer you’re looking for is false
5 0
3 years ago
Other questions:
  • Whats the Sioux City school wifi?
    15·2 answers
  • Organisms are classified as producers or consumers acorrding to the way they
    11·2 answers
  • Which of the following consists of electronic components that store instructions?
    10·1 answer
  • 2. Billys teacher asked him to type a report about asian food. Which paragraph format should he use?
    12·2 answers
  • Which option marks all modification made within a document? Review Comment Track Changes Balloons
    15·2 answers
  • The rule of thumb that predicts that the number of transistors on a cpu will double every two years is called ________ law.
    7·1 answer
  • What are three ways you cite evedince
    5·2 answers
  • All tif files start at offset 0 with what 6 hexadecimal characters?​
    11·1 answer
  • How are logical operators used?
    14·1 answer
  • Write a program that dose the following:
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!