Write a function that queries the user about the truthof a statement and then uses the user’s answers to distinguishbetween facts, falsehoods, alternative facts, and other categoriesof information. The term “alternative facts” wasintroduced early in 2017 by President Trump’s advisor KellyanneConway to characterize false statements that they would like thepublic to believe to be true. This was in response to some membersof the press pointing out that some of President Trump’s statementscould be easily shown to be false and it was odd that he insistedthey were true nonetheless. In addition to its political import,the concept of “alternative facts” raises some interestingquestions for logic. A description of the proposed programfollows:
- Ask the user to choose a statement for evaluation
- Ask the user to answer 2 questions about that statement:
- Is the statement is True, False or Unknown according to expertsin the relevant domain or according to some objective set offacts?
- Is the statement True, False or Unknown according to DonaldTrump?
- Your program should then classify the statements according tothe following table using if/elif/else statements or combinationsof these.
Truth Table with Alternative Facts Classification Expert Donald True True True False False False Unknown Unknown Unknown Alternative Fact False or Unknown True Alternative Falsehood True or Unknown False Alternative Unknown True or False Unknown
Expert Answer
Answer to Write a function that queries the user about the truth of a statement and then uses the user’s answers to distinguish be…