logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на elearn.squ.edu.om?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome