Question: without using if function Standard input consists of three integers, one per line. Call these a,b and c, respectively. Write a Python script named picker.py
Standard input consists of three integers, one per line. Call these a,b and c, respectively. Write a Python script named picker.py which outputs: - a if c is even, and - b if c is odd. Example standard output 1 Example standard input 2 Example standard output 2 It's going to have something to do with the remainder after dividing by two, isn't it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
