Complete the code to check if a number is positive.
if num [1] 0: print("Positive number")
The condition num > 0 checks if the number is positive.
Complete the code to print "Zero" when num is zero.
if num > 0: print("Positive") elif num [1] 0: print("Zero")
The condition num == 0 checks if the number is exactly zero.
Fix the error in the elif condition to check if num is negative.
if num > 0: print("Positive") elif num [1] 0: print("Negative")
The condition num < 0 correctly checks if the number is negative.
Fill both blanks to complete the elif ladder that prints the sign of num.
if num [1] 0: print("Positive") elif num [2] 0: print("Negative")
The first condition checks if num > 0 for positive numbers.
The second checks if num < 0 for negative numbers.
Fill all three blanks to complete the elif ladder that prints the sign or zero.
if num [1] 0: print("Positive") elif num [2] 0: print("Negative") else: print("[3]")
The code checks if num > 0 for positive, num < 0 for negative, and prints "Zero" otherwise.
