Write a program that asks the user to enter a list of numbers. The program should take the list of numbers and add only those numbers between 0 and 100 to a new list. It should then print the contents of the new list. Running the program should look something like this:

Please enter a list of numbers: 10.5 -8 105 76 83.2 206

The numbers between 0 and 100 are: 10.5 76.0 83.2

Answers

Answer 1

In python 3.8

nums = input("Please enter a list of numbers: ").split()

new_nums = [x for x in nums if 0 < float(x) < 100]

print("The numbers between 0 and 100 are: " + " ".join(new_nums))

When you said numbers between 0 and 100, I didn't know if that was inclusive or exclusive so I made it exclusive. I hope this helps!


Related Questions

Match the use of the magnetic field to its respective description.​

Answers

oooExplanation:

oooooooooooooooo

Consider the flow of mercury (a liquid metal) in a tube. How will the hydrodynamic and thermal entry lengths compare if the flow is laminar

Answers

Answer:

Explanation:

Considering the flow of mercury in a tube:

When it comes to laminar flow of mercury, the thermal entry length is quite smaller than the hydrodynamic entry length.

Also, the hydrodynamic and thermal entry lengths which is given as DLhRe05.0= for the case of laminar flow. It should be noted however, that Pr << 1 for liquid metals, and thus making the thermal entry length is smaller than the hydrodynamic entry length in laminar flow, like I'd stated in the previous paragraph

Liquid water at 300 kPa and 20°C is heated in a chamber by mixing it with superheated steam at 300 kPa and 300°C. Cold water enters the chamber at a rate of 2.6 kg/s. If the mixture leaves the mixing chamber at 60°C.

Required:
Determine the mass flow rate of the superheated steam required.

Answers

Answer:

0.154kg/s

Explanation:

From this question we have the following information:

P1 = 300kpa

T1 = 20⁰c

M1 = 2.6kg/s

For superheated system

P2 = 300kpa

T2 = 300⁰c

M2 = ??

T2 = 60⁰c

From saturated water table

h1 = 83.91kj/kg

h3 = 251.18kj/kg

From superheated water,

h2 = 3069.6kj/kg

The equation of energy balance

m1h1 + m2h2 = m3h3

When we input all the corresponding values:

We get

m2 = -434.902/-2818.42

m2 = 0.15430

m2 = 0.154kg/s

This is the mass flow rate of the superheated steam

Please check attachment for more detailed explanation.

thank you!

This question involves the concepts of energy balance and mass flow rate.

The mass flow rate of the superheated steam required is "0.15 kg/s".

Applying the energy balance in this situation, we get:

[tex]m_1h_1+m_2h_2=m_3h_3[/tex]

where,

m₁ = mass flow rate of liquid water at 300 KPa and 200°C = 2.6 kg/s

m₂ = mass flow rate of superheated at 300 KPa and 300°C = ?

h₁ = enthalpy of liquid water at 300 KPa and 200°C = 83.91 KJ/kg (from saturated steam table)

h₂ = enthalpy of superheated at 300 KPa and 300°C = 3069.6 KJ/kg (from superheated steam table)

h₃ = enthalpy of exiting fluid at 60°C = 251.18 KJ/kg (from saturated steam table)

m₃ = mass flow rate of exiting fluid = 2.6 kg/s + m₂

Therefore,

[tex](2.6\ kg/s)(83.91\ KJ/kg)+(m_2)(3069.6\ KJ/kg)=(2.6\ kg/s+m_2)(251.18\ KJ/kg)\\m_2(3069.6\ KJ/kg-251.18\ KJ/kg)=(2.6\ kg/s)(251.18\ KJ/kg-83.91\ KJ/kg)\\\\m_2=\frac{434.902\ KW}{2818.42\ KJ/kg}[/tex]

m₂ = 0.15 kg/s

Learn more about energy balance here:

https://brainly.com/question/9839609?referrer=searchResults


A 550 kJ of heat quantity needed to increase water temperature from 32°C to 80°C. Calculate the mass
of the water when the specific heat capacity of water is 4200 J/kg °C.​

Answers

Answer:

  2.728 kg

Explanation:

The units help you keep the calculation straight.

  [tex]\dfrac{550\text{ kJ}}{(80^\circ\text{C}-32^\circ\text{C})(4.200\text{ kJ/kg\,$^\circ$C})}=\dfrac{550}{48\cdot4.2}\text{ kg}\approx\boxed{2.728\text{ kg}}[/tex]

when you reach a yield sign yield to cross traffic and ___ before you enter the intersection

Answers

Answer:

Wain for a safe gap

Explanation:

When approaching a yield sign, drivers must give the right-of-way to traffic already in the lanes that they intend to enter or cross. Drivers should be prepared to stop when approaching a yield sign but may continue without stopping if there is no conflicting traffic.

Quadrilateral ABCD is a rectangle.
If m ZADB = 7k + 60 and mZCDB = -5k + 40, find mZCBD.

Answers

Hope this helps...........

Air enters a control volume operating at steady state at 1.2 bar, 300K, and leaves at 12 bar, 440K, witha volumetric flow rate of 1.3 m3/min. The work input to the control volume is 240 kJ per kg of air flowing. Neglecting kinetic and potential energy effects, determine the heat transfer rate, in kW.

Answers

Answer:

Heat transfer = 2.617 Kw

Explanation:

Given:

T1 = 300 k

T2 = 440 k

h1 = 300.19 KJ/kg

h2 = 441.61 KJ/kg

Density = 1.225 kg/m²

Find:

Mass flow rate = 1.225 x [1.3/60]

Mass flow rate = 0.02654 kg/s

mh1 + mw = mh2 + Q

0.02654(300.19 + 240) = 0.02654(441.61) + Q

Q = 2.617 Kw

Heat transfer = 2.617 Kw

Other Questions
PLEASE HELP!!!!!!!!!!!!!!!!! Write the equation of the line perpendicular to y=3/4x+9/4 that passes through the point (-5, 2) the goal of the policy was to reduce the population to ____ million by 2080A. 7 million B. 700 million C. 7 billion D. 70 million Can anyone help me find the value of x of this mid segment triangle? What needs to be emphasized in this step when reading?"Turn the two-bottle assembly over, and place the assembly on a table with the filled bottle on top. Watch the water slowly drip down into the lower bottle.... Now, rapidly rotate the bottles in a horizontal circle a few times. Observe the formation of a funnel-shaped vortex..."a.rapidly rotate the bottles in a horizontal circlec.both A and Bb.Watch the waterd.neither A nor BPlease select the best answer from the choices providedABCD (Please help its due now) Which of the following was not a major global trade commodity in the17th century?A. SugarB. CottonC. CoffeeD. Flax Cuando ramos jvenes, mis amigos y yo _____ todos los das despus de clasethese are answer choices :abrazar(se)contar(se)llevars(e)ayudar(se)escribir(se)ver(se)besar(se)llamar(se) I need helpWhich answer changes the following sentence from singular to pluralcorrectly? - La cama es cmoda. (Review noun/adjective agreement &definite articles) *La camas es cmodas.Las camas son cmoda.La camas son cmodas.Las camas son cmodas. There is a zero coupon bond that sells for $4,550.90 and has a par value of $10,000. If the bond has 18 years to maturity, what is the yield to maturity'? Assume semiannual compounding. A. 4.47% B. 4.27% C. 4.31% D. 4.24% E. 4.42% Which statement describes the charging method shown?The spheres are charged through friction.The spheres develop the same charge.Electrons move from the rod to Sphere A.Electrons move from Sphere A to Sphere B. 4. Which is a factor that keeps Earth in orbit aroundthe Sun?A. the gravitational pull of the SunB. the orbital path of the moonC. the continuous motion of the universeD. Earth's changing speed and direction How many media are used in unimedium technology Given: AB CD = O, mNOD = x,mAON = 44, mBOC = 102. Find: x. A convenience store sells two brands of orange juice. Brand a contains 8 fluid ounces and cost $1.58. Brand B contains 12 fluid ounces and cost $1.98. Which brand cost less per ounces imma create a game in among uswanna play Rewrite this sentence using BOTH a DOP and an IOP. Voy a dar una naranja a Juan. The more quickly you change your _____, the more ____ you will have to exert President Theodore Roosewer's foreign policy served to increase US involvement in -China's Boxer RebellionHawai's pineapple industrylatin american affairs European alliance systems Six comics are to perform on a single evening. Find the probability Translate the mRNA into the corresponding amino acids. A checking account is overdrawn if it has anegative balance. Marc's account is overdrawn by$45. What will the balance be after he deposits$170 and writes a check for $59?