129k views
3 votes
- if `check_1` and `check_2` variables are both True, it should set the value of a variable `outcome` to the string 'BOTH' - elif `check_1` is True and `check_2` is False, it should set the value of a variable `outcome` to the string 'ONE' - elif `check_1` is False and `check_2` is True, it should set the value of a variable `outcome` to the string 'TWO' - else (meaning both must be False), it should set the value of a variable `outcome` to the string 'NEITHER'

1 Answer

0 votes

Answer:

See Explaination

Step-by-step explanation:

if(check1 and check2):

outcome = "BOTH"

elif(check1):

outcome = "ONE"

elif(check2):

outcome = "TWO"

else:

outcome = "NEITHER"

User Himanshu Mahajan
by
3.3k points