No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.
Determine whether a given number is positive, negative, or zero.
You are given an integer variable
Check if the number is positive, negative, or zero.
Print 'Positive' if the number is greater than 0.
Print 'Negative' if the number is less than 0.
Print 'Zero' if the number is equal to 0.
Output:
Get your code reviewed and validated to understand what you did right and where you can improve.