Write a program that performs the following calculations in Python and prints the output of each one on a separate line.
e.remove());
document.dispatchEvent(
new CustomEvent('setAceCode', { detail: code.innerText })
);
const lessonContentWrapper = document.getElementById('lessonContentWrapper');
if (lessonContentWrapper) {
lessonContentWrapper._x_dataStack[0].layout = 'editor';
}
$el.innerText = 'Moved!';
setTimeout(function () {
$el.innerText = 'Move to Editor';
}, 3000);
">Move to Editor
e.remove());
navigator.clipboard.writeText(code.innerText);
$el.innerText = 'Copied!';
setTimeout(function () {
$el.innerText = 'Copy';
}, 3000);
">Copy
13 ÷ 12 + 16 x 4
23 + 18 x 12 ÷ 48
Write the program code on the opposite page and then run it. If the output result of your code is correct, submit it to get the score for this exercise.
Exercise Solution Video
First, try to solve the question by yourself. If you can't, watch the solution video: