Question: Problem 4 To help you implement the Swine Swap special rule, write a function called is _ swap that checks to see if the last
Problem
To help you implement the Swine Swap special rule, write a function called isswap that checks to see if the last two digits of the players' scores are swapped.
Run the following tests:
$ pythoni hog.py
isswap
True
isswap
False
isswap
True
isswap
False
isswap
True
isswap # We check the last two digits
True
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
