Police have arrested two partners in crime. The following compromise is proposed to each:
- Confess and betray your partner while he has not yet confessed. If this happens, you will be released, while your partner will be imprisoned for 20 years.
- If he confesses and betrays you, then he will be released and you will be imprisoned for 20 years.
- If you both confess and betray at the same time, then you will both be imprisoned for 10 years each.
- If neither of you confesses then, due to lack of evidence, you will both be convicted of lesser offenses and be imprisoned 1 year each.
Write a program in Python that reads whether or not the two criminals confessed by asking about
each one separately and then display the years of imprisonment each was sentenced to.