Write a Python program that takes an integer as input. If the integer is divisible by 2, print True; otherwise, print False. For input, you will scan a single integer. The output should be either True or False based on the condition.
Computer scienceProgramming languagesPythonWorking with dataData types and operationsBasic data types and operations
Boolean type and operations. True and false
Check if a number is divisible by 2
Report a typo
Sample Input 1:
4Sample Output 1:
TrueSample Input 2:
13Sample Output 2:
FalseWrite a program in Python 3
# We start by taking the integer input
input_value = int(input())
# Write your boolean operation here to determine whether the input_value is divisible by 2
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.