b. num = 3.4 if num > 0: print ("Positive number") elif num == 0: print ("Zero") else: print ("Negative number"). write output programm
The output of the given program would be "Positive number".
Here's how the program works:
The value of num is set to 3.4.
The if statement checks if num is greater than 0. Since 3.4 is greater than 0, the condition is true and the program enters the block of code under the if statement.
The program prints "Positive number" and then exits the block of code. The elif and else statements are not executed because the condition in the if statement was already satisfied.
Explanation:
positive number
please bro mark me brainlist I am close to become expert
Answers & Comments
Answer:
positive
Explanation:
because 3.4 is a.posiyive no
please make me brainlest answer
Verified answer
Answer:
b. num = 3.4 if num > 0: print ("Positive number") elif num == 0: print ("Zero") else: print ("Negative number"). write output programm
The output of the given program would be "Positive number".
Here's how the program works:
The value of num is set to 3.4.
The if statement checks if num is greater than 0. Since 3.4 is greater than 0, the condition is true and the program enters the block of code under the if statement.
The program prints "Positive number" and then exits the block of code. The elif and else statements are not executed because the condition in the if statement was already satisfied.
Explanation:
positive number
please bro mark me brainlist I am close to become expert