question 7 given input 10, what is the final value of positive_num? positive_num = int(input(\enter a…

question 7 given input 10, what is the final value of positive_num? positive_num = int(input(\enter a positive number:\)) if positive_num < 0: print(\negative input set to 0\) positive_num = 0 0 error 10 previous quiz saved at 8:54pm

question 7 given input 10, what is the final value of positive_num? positive_num = int(input(\enter a positive number:\)) if positive_num < 0: print(\negative input set to 0\) positive_num = 0 0 error 10 previous quiz saved at 8:54pm

Answer

Answer:

C. 10

Explanation:

Step1: Analyze input value

The input is 10 which is positive.

Step2: Evaluate if - condition

The if positive_num < 0 condition fails as 10 is not less than 0.

Step3: Determine final value

Since the if - block is not executed, the value of positive_num remains 10.