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:

  1. Ask the user to choose a statement for evaluation
  2. Ask the user to answer 2 questions about that statement:
    1. Is the statement is True, False or Unknown according to experts in the relevant domain or according to some objective set of facts?
    2. Is the statement True, False or Unknown according to Donald Trump?
  3. 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

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