What was the purpose of the Espionage and Sedition Acts?Please ASAP

The Espionage and Sedition Acts(1917 and 1918)allowed a citizen to be fined or imprisoned for speaking out against the government or the war effort. Benefits of these actions include streamlining war production and removing obstacles to the war effort.