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
which cloud computing service model describes cloud-based systems that are delivered as a virtual solution for computing that allows firms to contract for utility computing as needed rather than build data centers?
Infrastructure as a Service is the concept that is cloud-based systems that is supplied as virtualized solution for computing that permits businesses to pay for utility computing instead of building data centers.
Describe data.
Data are a group of discrete values that describe amount, quality, fact, statistics, or other fundamental units of meaning, or they can simply be a series of symbols that can be further understood. A data is a specific value included in a group of data. The majority of the time, data is arranged into smaller structures, such tables, which give more context and meaning and can also be used as information in larger structures. It's possible to use data as variables in a calculation. Data can represent intangible concepts.
To know more about data
https://brainly.com/question/26711803
#SPJ1