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

How Would I Get This Python Code To Run Correctly? It's Not Working.

Answers

Answer 1

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])


Related Questions

A baker deck decorates 42 cupcakes and 30 minute she decorated cupcakes at a constant rate how many cups cage the baker decorate pre-minute

Answers

Answer: 1.4 cupcakes per minute.

Explanation:

Here's the correct question:

A baker decorates 42 cupcakes in 30 minutes. How many cupcakes can the baker decorate per minute?

Since the baker decorates 42 cupcakes in 30 minutes, the number of cupcakes that the baker decorates for each minutes since it's at a constant rate will be the total number of cupcakes made divided by the number of minutes. This will be:

= 42cupcakes / 30minutes

= 1.4 cupcakes per minute.

Therefore, the number of cupcakes that the baker can decorate per minute is 1.4cupcakes/minute

There are gauges available for checking panel flushness. TRUE OR FALSE?

Answers

Answer: true

Explanation:

because flushness means your dead   so you are dead now

There are gauges available for checking panel flushness. to allow for front-to-back movement. to allow for side-to-side movement. for height adjustments. So yes it is true. Hope this helps!

A hydraulic jump is formed in a 4m wide outlet just downstream of a control gate, which is located at the upstream end of the outlet. The flow depth upstream of the gate is 20 m. Assume there are no losses in the flow through the gate. If the outlet discharge is 40 m3/s, determine (6 points)a. Flow depth downstream of the jump (y1)b. Energy losses in the jump (between y1 and y2).

Answers

Answer:

Width w = 4m

Glow depth = y1 = 20m

Outlet discharge = 40m

V1= velocity of flow = 40/20*4 = 1/2 = 0.5m/s

Froud number = v1/√gy1

= 0.5/√9.81x20 = 0.0356

1. Y2/20 = 1/2[-1+√1+8*(0.0356)²]

Y2 = 0.05

2. Energy loss in the jump = (20-0.05)²/4x20x0.05

= 1985m

8. Which of these plastics is a themoplastic - melts or softens with heat.
Acrylic
Bakelite
Polyester resin
Melamine
Epoxy Resin

Could someone please help me, this is very urgent, I will pay an extra bonus if done correct.

Answers

Answer:

Acryclic

Explanation:

Hope it helps you!

A jet aircraft is in level flight at an altitude of 30,000 ft with an airspeed of 500 ft/s. The aircraft has a gross weight of 19,815 lb, a wingspan of 53.3 ft, and an average chord length of 6 ft. The Oswald efficiency factor is 0.81 and the zero-lift drag coefficient is equal to 0.02. The jet has two turbofan engines, each producing a maximum thrust of 3,650 lb at sea level.

Required:
a. Create a plot of the drag polar for this aircraft for CL from 0 to 5. Plot CL on the vertical axis, CD on the horizontal axis, and do not include negative CL values.
b. What is the total drag coefficient at the flight condition described above?
c. What is the required thrust for level flight at this altitude in lb?
d. If the pilot runs the engines at maximum thrust, what is the instantaneous rate of climb at this altitude and velocity?

Answers

Answer:

a) attached below

b) 0.0337

c) 2730.206 Ib

d) 2320.338 ft/min

Explanation:

a) Plot of the drag polar for this aircraft

first we will calculate :

Wing area (s) = Wing span (b) * Average chord length(c)

                       = 53.3 * 6 = 319.8 ft^2

Aspect ratio =  b^2 / s = 8.883

K = 1 / [tex]\pi[/tex]eAR = 1 /

Drag polar ( Cd ) = 0.02 + 0.044 C^2L

attached below is a plot of the drag polar

Attached below is the detailed solution of the remaining part of the question

Q.13 In order to produce maximum starting torque in a split-phase motor, how many degrees out of phase should the start- and run-winding currents be with each other?
Select one:
A. 180°
B. 0°
C. 120°
D. 90°

Answers

Answer:

D. 90 degrees.

Explanation:

Torque is a rotational force which moves an object in other direction. There should be 90 degrees out of phase to start, run winding currents with each other. Torque is produced by the rotational motion of an object. The angle of the object must be 90 degrees set in order to create torque.

7.13 An intersection approach has a saturation flow rate of 1500 veh/h, and vehicles arrive at the approach at the rate of 800 veh/h. The approach is controlled by a pretimed signal with a cycle length of 60 seconds and D/D/1 queuing holds. Local standards dictate that signals should be set such that all approach queues dissipate 10 seconds before the end of the effective green portion of the cycle. Assuming that approach capacity exceeds arrivals, determine the maximum length

Answers

Answer:

23.34 seconds

Explanation:

Flow rate = 1500

Arrival = 800 vehicle per hour

Cycle c = 60 seconds

Dissipation time = 10 seconds

Arrival time = 800/3600 = 0.2222

Rate of departure = 1500/3600 = 0.4167

Traffic density p = 0.2222/0.4167 = 0.5332

Real time = r

r + to + 10 = c

to = c-r-10 ----1

t0 = p*r/1-p ----2

Equate both 1 and 2

C-r-10 = p*r/1-p

60-r-10 = 0.5332r/1-0.5332

50-r = 0.5332r/0.4668

50-r = 1.1422r

50 = 1.1422r + r

50 = 2.1422r

r = 50/2.1422

r = 23.34 seconds

Other Questions
2 Quelle est la question? Write the questions that clicited these answers. 1. Oui, elles me l'ont achete hier.2. Patrick va le lui envoyer.3. Tu ne nous les as pas prises. a college loan of 15000 has a 3% annual simple interest rate what is the interest the student will pay after 5 years PLEASE HELP ME ITS EITHER C OR D HELPPPPPPPP help please asap im confused After a full day of courses, Isaac felt too tired to do his homework, so he decided to take a thirty-minute nap first. The short rest worked, and Isaac was able to finish his homework pretty quickly after he woke up. However, since he had taken a rest so late in the afternoon, he could not sleep that night. What is the original problem presented in the passage? What new problem does Isaac cause by solving the first problem? HELP NEEDED PLSSGiven the following diagram, find the trigonometric ratios.Leave answers as reduced fractions (improper fractions are fine).BsinA=COSA = 1 Sharmila said to Suman. "I will tell you my topsecret tomorrow" (inte indirect speech)E. VoiceKeproduce the following sentence as indicated inthe bracketsa People speak English all over the would intopassive)He is writing a letter (into active)c. They made me wait for three hours. (into passive)d. I was punished for my mistake by them intoactive)e People say the life in Hollywood is exciting (intopassive)My book has been stolen into active)Somebody will steal that watch (into passive)h Teacher should be respected. (into active)They believe that Ming will do much better intopassiveI want the bag to be carried into active)She steals my pen into passive)Sonam did not sell flowers (Passive voice) ky NXSomethiGRose in t XscienceReading XG candy sp XRenaissa XGognissan XMy Apps Xogin.i-ready.com/student/dashboard/home8 MUSICSCIENCE HISTORYE READINGR MATHN NetflixExplaining the Structure of a Poem - Tutorial - Level EClick on the choice that BEST states the theme of this poem.Words Like Freedomby Langston HughesBecause freedom is precious, denying it topeople is cruel.There are words like FreedomSweet and wonderful to say.On my heartstrings freedom singsAll day everyday.The value of freedomThere are words like LibertyThat almost make me cry.If you had known what I knowYou would know why.People have suffered greatly for the lack of A school has 320 girls and 250 boys.The probability that a girl is left-handed is 0.2The probability that a boy is left-handed is 0.1Estimate the number of left-handed students in the school. i need help please & thank you!! Find the area of the figure. Naomi is reading a book that has 420 pages she reads 35 pages each day how many days will naomi need to finish this book A political party is an organization: Group of answer choices established by the Constitution to nominate candidates. that collects fees from its members in order to pay the salaries of government officials. that tries to influence the government by getting its members elected to office. that falls under section 501(c)(4) of the United States tax code. How loss on sale of sports material is entered in Income and Expenditure Account? If sports material book value is $120 but sold at $50? Can genetic engineering cause harm to humans? Imagine that you are currently on a trip to a place of your choice. Write a postcard to a friend telling them what has happened on your trip. Include information about your hotel stay, and what activities youve done on your trip. Use the imparfait and the pass compos past tenses. Write a minimum of TEN complete sentences in the past tense. Dakota earns $8.70 an hour for 37Per monthhour week. How much is earned per week? Which of the following statements about vitamin A's role in the bodyis FALSE?Lycopene serves as a vitamin A precursor and acts as an antioxidant.Vitamin A and beta-carotene protect the skin from sun damage.Vitamin A maintains healthy cells in the mucous membranes.Vitamin A supports normal fetal development during pregnancy.Only one-thousandth of the body's vitamin A is in the retina. Add 2 to both sides of the equation.So, I have this half-done equation, and the next step is to add 2 to both sides, how do I do that? Please help with a legit answer, thankyou so much!x^3=(x-2) Lyla is planning on riding his bike no more than 65 miles during the week. She has already ridden 17 miles. Write and solve an inequality to find how many more miles she can ride. Then interpret the solution.