Question: Write a function that queries the user about the truth of a statement and then uses the user's answers to distinguish between facts, falsehoods, alternative
Write a function that queries the user about the truth of a statement and then uses the user's answers to distinguish between facts, falsehoods, alternative facts, and other categories of information. The term alternative facts was introduced early in 2017 by President Trump's advisor Kellyanne Conway to characterize false statements that they would like the public to believe to be true. This was in response to some members of the press pointing out that some of President Trump's statements could be easily shown to be false and it was odd that he insisted they were true nonetheless. In addition to its political import, the concept of alternative facts raises some interesting questions for logic. A description of the proposed program follows:
- 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 experts in the relevant domain or according to some objective set of facts?
- Is the statement True, False or Unknown according to Donald Trump?
- Your program should then classify the statements according to the following table using if/elif/else statements or combinations of 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
