Write a Loop for Python 2.7

profiledanmelvanderson_i01c

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.

    • 11 years ago
    • 20
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      python-1.docx_3.docx
    Bids(1)