Drop links or images here to add them to the editor.

In a modify task you take code that already works and adapt it so that it does something else. This time the starter code does not work at all: it stops with an error before it outputs anything. Your first job is to find out why.

The editor starts you off with this program:

num1 = 10
num2 = input
total1 = num1 + num2
print(str(num1) + " plus " + str(num2) + " = ")

Your task

Adapt the code so that it adds and multiplies the two numbers, and outputs both results.

Ask the question with its own print, exactly as written:

Enter a number:

The question is part of the checked output, so spelling, capital letters and punctuation count. The two output lines that follow it must also match exactly, spaces and the = included. For a user who enters 5, the program outputs:

Enter a number:
10 plus 5 = 15
10 times 5 = 50

Example

Input:

48

Output:

Enter a number:
10 plus 48 = 58
10 times 48 = 480

Input:

-6

Output:

Enter a number:
10 plus -6 = 4
10 times -6 = -60
Help! My code doesn't work!

Make sure that you check for the following things:

  • You have typed the variable name exactly the same, capital letters included, every time.
  • There is a variable on the left of each assignment, and the data is on the right.
  • You have used a single = for assignment.
  • You have used the correct operator: + to add, - to subtract, * to multiply, / to divide with a decimal result, and // to divide and keep only the whole number part.
  • You have remembered the brackets after input.
  • Every number that is concatenated into a print is wrapped in str().