Question: without using the modulus operator Task Standard input consists of a single integer, n say. Write Python script named is-even.py which outputs True if n
Task Standard input consists of a single integer, n say. Write Python script named is-even.py which outputs True if n is even and False otherwise. Your solution may not use 8 , the modulus operator (and may only use elements of Python which have been covered in the module thus far). Example standard input 1 Example standard output 1 Example standard output 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
