Code
= 10
x if x > 0:
print("Positive")
elif x < 0:
print("Negative")
else:
print("Zero")
Positive
Control Flows in Python
Result: 2.0
Execution completed
For more detailed information on Python control flows, refer to the Python documentation on Control Flow Tools.