Respuesta :

write a function named twowordsv2 that has the same specification as problem 1, but implement it using while and not using break.

Code in Python:

def twoWordsV2 (lgt,firstLr)

{

  w1 = ""

  w2= ""  

  while(len(w1)!=length)

  {

      word1 = input('A ' + str(lgt) + '-letter word here: ')

      }

  while(word2!=firstL):

    {

      word2 = input(' Word that begins with ' + firstL')

      if word2[0] == firstL.upper() or word2[0] == firstL.lower():

     {

          return [w1,w2]                

        }

print(twoWordsV2(4,'B'))

    }

}

What is a while loop? How does it work?

A while loop is a control flow statement that enables code to be performed repeatedly in most computer programming languages based on a specified Boolean condition. You can think of the while loop as an iterative if statement.

The while loop runs the code after first determining if the condition is true. Until the given condition returns false, the loop doesn't end. As an alternative, the do while loop only executes its code a second time if the condition is satisfied after the first execution.

To learn more about while loop, use the link given
https://brainly.com/question/19344465
#SPJ4