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
Vlad1618 [11]
3 years ago
7

How would I get this python code to run correctly? it's not working.​

Engineering
1 answer:
Elanso [62]3 years ago
6 0

Answer:

See Explanation

Explanation:

This question requires more information because you didn't state what the program is expected to do.

Reading through the program, I can assume that you want to first print all movie titles then prompt the user for a number and then print the move title in that location.

So, the correction is as follows:

Rewrite the first line of the program i.e. movie_titles = ["The grinch......."]

for each_movie_titles in movie_titles:

   print(each_movie_titles)

   

usernum = int(input("Number between 0 and 9 [inclusive]: "))

if usernum<10 and usernum>=0:

   print(movie_titles[usernum])

Line by line explanation

This iterates through the movie_titles list

for each_movie_titles in movie_titles:

This prints each movie title

   print(each_movie_titles)

This prompts the user for a number between 0 and 9    

usernum = int(input("Number between 0 and 9 [inclusive]: "))

This checks for valid range

if usernum<10 and usernum>=0:

If number is valid, this prints the movie title in that location

   print(movie_titles[usernum])

You might be interested in
A 150 MVA, 24 kV, 123% three-phase synchronous generator supplies a large network. The network voltage is 27 kV. The phase angle
Aleks04 [339]

Answer:

the generator induced voltage is 60.59 kV

Explanation:

Given:

S = 150 MVA

Vline = 24 kV = 24000 V

X_{s} =1.23(\frac{V_{line}^{2}  }{s} )=1.23\frac{24000^{2} }{1500} =4723.2 ohms

the network voltage phase is

V_{phase} =\frac{V_{nline} }{\sqrt{3} } =\frac{27}{\sqrt{3} } =15.58kV

the power transmitted is equal to:

|E|=\frac{P*X_{s} }{3*|V_{phase}|sinO } ;if-O=60\\|E|=\frac{300*4.723}{3*15.58*sin60} =34.98kV

the line induced voltage is

|E_{line} |=\sqrt{3} *|E|=\sqrt{3} *34.98=60.59kV

7 0
3 years ago
Tahir travel twice as far as ahmed, but onley one third as fast. Ahmed starts travel on tuesday at noon at point x to point z 30
shepuryov [24]

Answer:

6:00 pm the next day

Explanation:

Given that

Tahir traveled twice as far as Ahmed. We say,

Ahmed traveled a distance, D

Tahir would travel a distan, 2D

Tahir traveled 1/3 as fast as Ahmed, so we say

Ahmed traveled at a speed, S

Tahir would travel at a speed, S/3

If Ahmed starts travel on tuesday at noon at point x to point z 300km, by 9:00pm,

Time taken by Ahmed to travel is

9:00 pm - 12:00 pm = 9 hours

Ahmed, traveled 300 km in 9 hours, meaning he traveled at 33.3 km in an hour.

Speed, S that Ahmed traveled with is 33.3 km/h

Remember, we stated that Tahir travels at a speed of S/3, that is, The speed of Tahir is

33.3/3 = 11.1 km/h.

300 km would then be traveled in 300 km/11.1 km/h = 27 hours.

Tahir started traveling, 3 hours after Ahmed, that is 12:00 pm + 3:00 hrs = 3:00 pm, and if he's to spend 27 hours on the journey he would reach destination z at 6:00 pm the next day

7 0
2 years ago
During a medical evaluation, the doctor can __________.
Elan Coil [88]

Answer:

Treat the patient

i hope this is ur answer

8 0
2 years ago
The intake and exhaust processes are not considered in the p-V diagram of Otto cycle. a) true b) false
vovangra [49]

Answer:

b) false

Explanation:

We know that Otto cycle is the ideal cycle for all petrol working engine.In Otto cycle all process are consider is ideal ,means there is no any ir-reversibility in the processes.

It consist four processes

1-2:Reversible adiabatic compression

2-3:Constant volume heat addition

3-4:Reversible adiabatic expansion

3-4:Constant volume heat rejection

Along with above 4 processes intake and exhaust processes are parallel to each other.From the P-v diagram we can see that all processes.

But actually in general we are not showing intake and exhaust line then it did not mean that in Otto cycle did not have intake and exhaust processes.

6 0
3 years ago
Basil is installing a system in Toronto, Ontario where they are wide temperature variations. What is the TD of the system he’s i
marysya [2.9K]
In places with cold winters, space heating systems have a fundamental role in buildings. Without them, indoor temperatures would quickly become unsuitable for human occupancy. The local weather is one of the most important factors when designing a heating system; if two identical buildings are developed in Miami FL and New York City, the heating load will be much higher for the NYC property.

4 0
3 years ago
Other questions:
  • Which phrase best describes a safety-critical system? A. a system that faces a very high risk of failure B. a system isolated fr
    13·1 answer
  • How does the modern Diesel engine achieve higher power output without the use of higher compression ratio?
    5·1 answer
  • A square-thread power screw has a major diameter of 32 mm and a pitch of 4 mm with single threads, and it is used to raise a loa
    8·1 answer
  • A hollow steel tube with an inside diameter of 100 mm must carry a tensile load of 400 kN. Determine the outside diameter of the
    12·2 answers
  • A heat pump designer claims to have an air-source heat pump whose coefficient of performance is 1.8 when heating a building whos
    10·1 answer
  • In a heat-treating process, a 1-kg metal part, initially at 1075 K, is quenched in a closed tank containing 100 kg of water, ini
    10·1 answer
  • thier only motto and goal is to work for society and not make any profits A.small business entreprenuership B.scalable start up
    6·2 answers
  • Fixed rate mortgage offer:
    9·2 answers
  • What is considered the greatest engineering achievement of the 20th century?
    10·1 answer
  • Conduct online research and write a short report on the origin and evolution of the meter as a measurement standard. Discuss how
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!