# AmericanRevolutionManager.ipynb

In [1]:
from xv.history.managers import AmericanRevolutionManager

In [2]:
ke = AmericanRevolutionManager(verbose = False)

In [3]:
ke.printProblemTypes()

0. _problem_introduction
1. _problem_random_question_from_rich_text
2. _problem_american_president_timeline
3. _problem_american_president_not_in_list
4. _problem_american_president_in_list
5. _problem_american_presidents_match
6. _problem_random_saq_question
7. _problem_random_mcq_question

In [4]:
ke.getRandomProblem(problem_type = 7)

Out[4]:
Benjamin Franklin's famous "Join or Die" political cartoon was drawn
1. In 1765 to support the Stamp Act Congress
2. In 1775 to support the Second Continental Congress
3. In 1774 to support the First Continental Congress
4. In 1754 to support the Albany Congress
In [5]:
ke.printAnswer()

Out[5]:
4. In 1754 to support the Albany Congress
In [6]:
ke.printSolution()

Out[6]:
Question. Benjamin Franklin's famous "Join or Die" political cartoon was drawn
1. In 1765 to support the Stamp Act Congress
2. In 1775 to support the Second Continental Congress
3. In 1774 to support the First Continental Congress
4. In 1754 to support the Albany Congress

Answer. 4. In 1754 to support the Albany Congress
In [ ]:


In [7]:
from IPython.display import HTML
n = len(ke._problemTemplates)
max_loop = 1
for j in range(0, max_loop):
for i in range(n):
problem_type = i
display(HTML(f"<h2>problem_type: {problem_type}/{n-1} (loop {j}/{max_loop-1})</h2>"))
ke.getRandomProblem(problem_type = problem_type, verbose = True)
display(ke.printProblem())

display(HTML(f"<h6>Solution:</h6>"))
display(ke.printSolution())
pass


## problem_type: 0/7 (loop 0/0)

Problem Template: _problem_introduction

Introduction to American Revolution

## problem_type: 1/7 (loop 0/0)

Problem Template: _problem_random_question_from_rich_text

Unscramble the word:
binlel hurk

The word has been taken from the following paragraph:
The Second Continental Congress chose George Washington, a southerner, to command the militiamen besieging Boston in the north. They also appropriated money for a small navy and for transforming the undisciplined militias into the professional Continental Army. Encouraged by a strong colonial campaign in which the British scored only narrow victories (such as at Bunker Hill), many colonists began to advocate total independence as opposed to having full rights within the British Empire. The next year, the congressmen voted on July 2, 1776, to declare their independence. Thomas Jefferson, a young lawyer from Virginia, drafted the Declaration Of Independence. The United States was born.
bunker hill
###### Solution:
bunker hill

The Second Continental Congress chose George Washington, a southerner, to command the militiamen besieging Boston in the north. They also appropriated money for a small navy and for transforming the undisciplined militias into the professional Continental Army. Encouraged by a strong colonial campaign in which the British scored only narrow victories (such as at Bunker Hill), many colonists began to advocate total independence as opposed to having full rights within the British Empire. The next year, the congressmen voted on July 2, 1776, to declare their independence. Thomas Jefferson, a young lawyer from Virginia, drafted the Declaration Of Independence. The United States was born.

## problem_type: 2/7 (loop 0/0)

Problem Template: _problem_american_president_timeline

Arrange the presidents of USA in timeline order:
1. George Washington
2. Thomas Jefferson
1. George Washington
3. Thomas Jefferson
###### Solution:
1. George Washington
3. Thomas Jefferson

## problem_type: 3/7 (loop 0/0)

Problem Template: _problem_american_president_not_in_list

Who is not among the last four presidents of USA?
1. Joe Biden
2. George Washington
3. Barack Obama
4. George W. Bush
George Washington
###### Solution:
George Washington

The last four presidents of USA:
1. George W. Bush
2. Barack Obama
3. Donald Trump
4. Joe Biden

## problem_type: 4/7 (loop 0/0)

Problem Template: _problem_american_president_in_list

Who is among the last four presidents of USA?
1. William Howard Taft
2. Gerald Ford
3. Joe Biden
Joe Biden
###### Solution:
Joe Biden

The last four presidents of USA:
1. George W. Bush
2. Barack Obama
3. Donald Trump
4. Joe Biden

## problem_type: 5/7 (loop 0/0)

Problem Template: _problem_american_presidents_match

Match the USA presidents with the year they became president?
 John Adams 1789 Theodore Roosevelt 1797 George Washington 1901 Gerald Ford 1974
 John Adams 1797 Theodore Roosevelt 1901 George Washington 1789 Gerald Ford 1974
###### Solution:
 John Adams 1797 Theodore Roosevelt 1901 George Washington 1789 Gerald Ford 1974

List of USA presidents with the year they became president?
 George Washington 1789 John Adams 1797 Thomas Jefferson 1801 James Madison 1809 James Monroe 1817 John Quincy Adams 1825 Andrew Jackson 1829 Martin Van Buren 1837 William Henry Harrison 1841 John Tyler 1841 James K. Polk 1845 Zachary Taylor 1849 Millard Fillmore 1850 Franklin Pierce 1853 James Buchanan 1857 Abraham Lincoln 1861 Andrew Johnson 1865 Ulysses S. Grant 1869 Rutherford B. Hayes 1877 James A. Garfield 1881 Chester A. Arthur 1881 Grover Cleveland 1885 Benjamin Harrison 1889 Grover Cleveland 1893 William McKinley 1897 Theodore Roosevelt 1901 William Howard Taft 1909 Woodrow Wilson 1913 Warren G. Harding 1921 Calvin Coolidge 1923 Herbert Hoover 1929 Franklin D. Roosevelt 1933 Harry S. Truman 1945 Dwight D. Eisenhower 1953 John F. Kennedy 1961 Lyndon B. Johnson 1963 Richard Nixon 1969 Gerald Ford 1974 Jimmy Carter 1977 Ronald Reagan 1981 George H. W. Bush 1989 Bill Clinton 1993 George W. Bush 2001 Barack Obama 2009 Donald Trump 2017 Joe Biden 2021

## problem_type: 6/7 (loop 0/0)

Problem Template: _problem_random_saq_question

Which Continental congress produced the Olive Branch Petition ?
Second Continental Congress
###### Solution:
Question. Which Continental congress produced the Olive Branch Petition ?

## problem_type: 7/7 (loop 0/0)

Problem Template: _problem_random_mcq_question

With which country did the United States forge a military alliance in 1778?
1. Austria
2. France
3. Spain
4. Russia
2. France
###### Solution:
Question. With which country did the United States forge a military alliance in 1778?
1. Austria
2. France
3. Spain
4. Russia

In [ ]: