Question: 3. Write a Python script, Lab01_03.py that initializes p1 and p2 to 0 and display their value after the below conditions are checked. Conditions
3. Write a Python script, Lab01_03.py that initializes p1 and p2 to 0 and display their value after the below conditions are checked. Conditions sets13 sets2 < 2 sets1 = 3 sets2 = 2 sets1 = 2 2 sets2 = 3 sets1 < 2 sets2 = 3 otherwise Sample Runs: (User inputs are shown in red.) Enter setsl :3 Enter sets2 :2 pl = 2 p2= 1 Enter sets1 : 1 Enter sets2 :4 Wrong score pl = 0 p2= 0 Operations increase p1 by 3 increase p1 by 2, increase p2 by 1 increase p1 by 1, increase p2 by 2 increase p2 by 3 print "Wrong score" Enter setsl :1 Enter sets2 :3 pl = 0 p2= 3
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Creating a Python script Lab01Q3py to implement the given condition... View full answer
Get step-by-step solutions from verified subject matter experts
