Question
Write a block of Python code that prompts the user to enter an integer. If the number is evenly divisible by 2, output to the
Write a block of Python code that prompts the user to enter an integer. If the number is evenly divisible by 2, output to the screen This number is divisible by 2. If the number is evenly divisible by 3, output to the screen This number is divisible by 3. However, if the number is evenly divisible by both 2 and 3, output to the screen This number is divisible by both 2 and 3. If the number is not divisible by 2 or 3, then output to the screen This number is not divisible by 2 or 3. Note: there should be only one line of output on the screen after the input.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started