Check if a number is divisible by 2

Report a typo

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.

Sample Input 1:

4

Sample Output 1:

True

Sample Input 2:

13

Sample Output 2:

False
Write 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