Consider the following code snippet: trigger = True if trigger: output = 17 else: output = 3 What is the value of output
Posted: Fri Jun 10, 2022 11:58 am
Consider the following code snippet: trigger = True if trigger: output = 17 else: output = 3 What is the value of output ? type your answer here Submit You want to compare a variable var to the number 18. In the code snippet below, fill the blank such that the program sets output to 1 if var is less than 18 and 0 otherwise. if output = 1 else: output = 0 type your answer here Submit Implement the following code: profit = 90 good quarter = 0 while profit > 0: profit profit - 10 good quarter = good quarter + 1 What is the final value of the variable good quarter ?