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
Using the Distortion-Energy failure theory: 8. (5 pts) Calculate the hydrostatic and distortional components of the stress 9. (1
WITCHER [35]

Answer:

Detailed solution is given below:

7 0
3 years ago
Question: 10 of 15
Anvisha [2.4K]

Answer:

Leg length

Explanation:

The distances from the root to the edges of the legs (toes) and the height of the crown are basic measurements.

3 0
3 years ago
A material point in equilibrium has 1 independent component of shear stress in the xz plane. a)True b)- False
ozzi

Answer:

True

Explanation:

For point in xz plane the stress tensor is given by\left[\begin{array}{ccc}Dx_{} &txz\\tzx&Dz\\\end{array}\right]

where Dx is the direct stress along x ; Dz is direct stress along z ;  tzx and txz are the  shear stress components

We know that the stress tensor matrix is symmetrical which means that tzx = txz  ( obtained by moment equlibrium )

thus we require only 1 independent component of shear stress to define the whole stress tensor at a point in 2D plane

8 0
3 years ago
What different tests did the team perform to come up with a workable design?
I am Lyosha [343]
They ran different shapes and materials through a wind tunnel to see which shape and material would decrease energy output so that it takes in equal COthan it puts out.
5 0
3 years ago
When passing another vehicle, when is it acceptable to drive over the
miss Akunina [59]

Answer:

Under no circumstances

Explanation:

I'm not 100% sure why, but I remember hearing that you're not suposed to go over the speed limit no matter what

7 0
3 years ago
Read 2 more answers
Other questions:
  • To cool a summer home without using a vapor compression refrigeration cycle, air is routed through a plastic pipe (k=0.15 W/m*K,
    15·1 answer
  • If 1 uF capacitor is fully charged with 120 V across it, how much energy is stored in it? (a) 7.2 kJ (b) 7.2 mJ (c) 0.12 mJ (d)
    6·1 answer
  • What the Best describes the purpose of the occupational safety and health administración OSHA
    12·1 answer
  • 2. One of the many methods used for drying air is to cool the air below the dew point so that condensation or freezing of the mo
    12·1 answer
  • How long should the shafts remain in the furnace to achieve a desired centerline temperature of 800K? 2) Determine the temperatu
    5·1 answer
  • A pump transfers water from a lake to a reservoir, which is located 29.2 m above the lake, at a rate of 11.5 L/s. Determine the
    12·1 answer
  • Electrical circuits must be locked-out/tagged-out before electricians work on any equipment. Is this true or false?
    15·1 answer
  • Consider the following example: The 28-day compressive strength should be 4,000 psi. The slump should be between 3 and 4 in. and
    13·1 answer
  • In your role, you are responsible for making sure that delivery trucks depart from the building on time. When a truck arrives la
    10·1 answer
  • Five Safety for vernier height guage​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!