Question: Even Value or Zero Task Write a Python script named even-value-or-zero.py which reads and integer (n, say) and: if n is even then outputs the

 Even Value or Zero Task Write a Python script named even-value-or-zero.py

Even Value or Zero Task Write a Python script named even-value-or-zero.py which reads and integer (n, say) and: if n is even then outputs the value n, or ifnis odd, then outputs just 0. (This is the same as the previous task, except the other way around.) Example input 1 3 Example output 1 0 Example input 2 4 Example output 2 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!