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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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