Write a loop program in python

Assignment Help Other Engineering
Reference no: EM131075557

Write a Loop Program In Python 2.7

  1. Write a loop that prints your name 75 times, Each instance should be followed by a newline. At the end, print the phrase "The loop is complete"
    • name = "Daniel"
  2. Write a print statement to produce the following outputs given the variable below

    pi = 3.14159

    1. Pi to two decimal places is 3.14.
    2. Pi with a leading 0 is 03.14159.
  3. In what scenario would a while loop go on indefinitely.

There are a few ways this could happen, however the most popular answer will be if the programmer does not update the loop control variable.

Reference no: EM131075557

Questions Cloud

Control and loop structures in python : Choose two loop structures and explain which you think is most convenient and why. Also, choose two control structures such as if else blocks and case statements and explain which you think is the most convenient and why.
Total amount of work needed to pump : If the radius of the cylinder is 0.5 meters, its length is 2meters, and its top is 3 meters under the ground, find the total amount of work needed to pump the gasoline out of the tank.
Find an orthonormal basis for h : MATH 54 QUIZ 10. Let H be the subspace of R5 given by, Find an orthonormal basis for H
Determining the normal atmospheric pressure : If the water is allowed to boil at normal atmospheric pressure, how long will it take to boil the reactor dry?
Write a loop program in python : Write a loop that prints your name 75 times, Each instance should be followed by a newline. At the end, print the phrase "The loop is complete"
Experiment on velocity and air-resistance : Draw a FBD for the falling coffee filter. What is the net force? What are we assuming by using the average velocity from Procedure 1 to estimate the height of the fall in Procedure 2?
Explain the purpose of the mutator method : Explain the purpose of the mutator method. What does it normally return and why? Explain aliasing, how does it affect the mutation of an object?
Rest and accelerates at a rate : A motorcycle starts from rest and accelerates at a rate of 10 m/s2 for 4 seconds and then accelerates at a rate of 2 m/s2 for 3 seconds. How far did the motorcycle travel in 7 s?
Correct for the molar mass of the gas : A sample of 3.0 grams of an ideal gas at 127°C and 1.0 atmosphere pressure has a volume of 1.5 liters. Which of the following expressions is correct for the molar mass of the gas? The ideal gas constant, R, is 0.08 (L-atm) / (mole K).

Reviews

Write a Review

Other Engineering Questions & Answers

  Calculate heat capacity for both heat and cold flow

Calculate Heat capacity for both heat and cold flow - Since cold flow has higher heat capacity rate means hot flow has lower heat capacity rate

  The economic order quantity (eoq) model issues

What will happen to the total annual variable cost? The annual variable cost includes the annual ordering cost and annual inventory holding cost?

  List four of the suggested tips for resolving conflict

Why do conflicts arise. (three specific words or phrases). List four of the suggested tips for resolving conflict. List three of the attributes of constructive dialogue in the order you think is the most important. Briefly explain your rankings.

  What is the back pressure pr

The supersonic nozzle of Fig is over expanded (case G of Fig) with Ae/At = 3.0 and a stagnation pressure of 350 kPa. If the jet edge makes a 4° angle with the nozzle centerline, what is the back pressure pr in kPa?

  Airline terminal problem by adding agent breaks

Compare the results of this model to those of the model without agent breaks. Use the "Station" and "Route" modules to help you in the animation. Use the "Variable" icon to monitor and identify the metrics requested.

  Determine the initial gas in place

Determine the initial gas in place and what percentage of the initial gas in place will be recovered at a p/z of 1000?

  Determine angular velocity of crate

Assuming that the impact is perfectly plastic, determine the angular velocity of the crate and the velocity of its mass center immediately after the cable becomestaut.

  How many toys should the retailer send

What pitching rotation should Greg set to provide the highest sum of the probabilities of winning each game for this team? Please formulate as a linear program.

  Difference between digital immigrants and digital natives

Describe at least three ways in which digitization has changed the manner in which society consumes information - Which of the following statements best describes the main difference between digital immigrants and digital natives?

  Determining the fair value measurement

Should a reporting entity consider disposition costs in determining the fair value measurement in the principal (or most advantageous) market?

  What is the sound pressure level with all three running

What is the sound pressure level with all three running - Does the employee need to be included in a hearing conservation program

  Geometric brownian motion

Write the expressions in the form S(i)T = const + 0∫T.....dt + 0∫T.....dWt, i = 1, 2 - solve the stochastic differential equation

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd