Question: using python Write a program that determines whether two patient's blood groups are compatible. Specifically, given the two patient blood types, one a donor, the

using python Write a program that determines whether two patient's blood groups are compatible.
Specifically, given the two patient blood types, one a donor, the other a potential
recipient, your program should print out 'True' if a donation is possible, 'False' if it is not,
and 'Invalid input' if one of the blood types is not A, B, AB, or O.

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 Programming Questions!