Calculator 1

Have a look at the code below

Predict:

Write down what you think it will do….

Run

Were you correct?

Investigate

What is the purpose of each of the following commands?

  • input() – Asks the user to type something into the computer
  • int() –
  • str() –
  • \n –

number1 = int(input(“Please input your first number: “))

This line of the code does four things. List what you think these four things might be.