Read the following conditions:

Scout sold fewer than 20 boxes of cookies
Scout missed more than one meeting

Which of the following statements tests if one of the conditions has been met?

if(boxes < 20 and meetingsMissed > 1):
if(boxes < 20 and meetingsMissed >= 1):
if(boxes < 20 or meetingsMissed >= 1):
if(boxes < 20 or meetingsMissed > 1):

Respuesta :

fichoh

The 'and', 'or' operators are used to test conditions which yields a set of boolean (True, False) values. Hence, the required statement is if(boxes < 20 or meetingsMissed > 1):

The 'and' operator requires that the two conditions are met in other to to yield a true value. However, the 'or' operator requires that only one of the conditions is met in other to yield a true Value.

Since, only either conditions is required, the we use the 'or' operator ;

  • Fewer than 20 boxes : boxes < 20
  • Missed more than 1 meeting : meetingsMissed > 1

Therefore, the required statement is ;

  • if(boxes < 20 or meetingsMissed > 1):

Learn more :https://brainly.com/question/18539409?referrer=searchResults