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
What is 39483048^349374*3948048/3i4u4
Verizon [17]

Answer:

1.  3.81813506×10^2^9

2.  1.71479428×10^6^5

3.  9.38483383×10^2^6

4.  1.150847×10^2^9

Explanation:

Feel free to give brainliest

Have a great day!

3 0
2 years ago
The statement that is NOT true about the concept of a boundary layer on an object is: a. the Reynolds number is greater than uni
Ilya [14]

Answer:

Option E

Explanation:

All the given statements are true except the velocity gradients normal to the flow direction are small since these are not normally small. It's true that viscous effects are present only inside the boundary layer and the fluid velocity equals the free stream velocity at the edge of the boundary layer. Moreover, Reynolds number is greater than unity and the fluid velocity is zero at the surface of the object.

5 0
2 years ago
A horse pulls a cart along a road with a force of 550 lbs. If the horse does 2,674,100 ftlbs of work by the time it stops, how f
BartSMP [9]

Answer:

When a horse pull a cart the action is on?

A horse is harnessed to a cart. If the horse tries to pull the cart, the horse must exert a force on the cart. By Newton's third law the cart must then exert an equal and opposite force on the horse. Newton's second law tells us that acceleration is equal to the net force divided by the mass of the system.

Explanation:

5 0
2 years ago
Read 2 more answers
Which of the following tape measure techniques can be used to achieve accurate measurements? Choose all that apply.
zepelin [54]

Answer: Pull.

Because it's all about height width and Breadth!

5 0
2 years ago
Zachary finished an internship as a Software Quality Assurance Engineer. For which job is he best qualified?
astra-53 [7]

Answer:

B. A software development firm needs someone to find and fix bugs on multiple computer platforms.

Explanation:

A software quality assurance engineer is someone who monitors every phase of the software development process so as to ensure design quality, making sure that the software adheres to the standards set by the development company. Finding bugs would make this intern a amazing bug finder

6 0
3 years ago
Read 2 more answers
Other questions:
  • Give an example of one technology that is well matched to the needs of the environment, and one technology that is not.
    9·1 answer
  • The benefit of using the generalized enthalpy departure chart prepared by using PR and TR as the parameters instead of P and T i
    6·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • Which factors influence changes in consumer demands? check all that apply
    8·2 answers
  • At what stage of development is an engineering team the most productive?
    6·2 answers
  • A motor cycle is moving up an incline of 1 in 30 at a speed of 80 km/h,and then suddenly the engine shuts down.The tractive resi
    11·1 answer
  • When you do a vehicle check, what do you NOT need to keep an eye on?
    9·1 answer
  • . Which of the following formula is used for calculating current:
    15·1 answer
  • What is anthropology? Discuss the type of anthropology?
    5·2 answers
  • Which pipe for water is best for construction?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!