logo

Crowdly

Browser

Add to Chrome

The following program is supposed to print a message any time the user enters tw...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The following program is supposed to print a message any time the user enters two consecutive values that are the same. What line of code must be inserted in the blank so that the program will achieve this goal?

 

value = int(input("Enter a value: ")

inputStr = input("Enter a value: ")

while inputStr != "" :

   previous = value

   value = int(inputStr)

   ____________________

      print("Found consecutive values that are the same")  

   inputStr = input("Enter a value: ")
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on elearn.squ.edu.om?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome