Python Online Compiler
Example: Python program of decision making by using if-else statement
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program of decision making by using if-else statement print("Enter an integer value::") n = int(input()) # true if number is less than 6 otherwise it will be false if (n < 6): print("Condition is true.\n") else: print("Condition is false.\n")
7
Output
Clear
ADVERTISEMENTS