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