LO Understand how to use selection to create a simple calculator.
Teacher's Slides
STARTER:
Look at the Print out. What do you think this programming will do. Work in pairs / small groups?
Development 1
- Open up www.repl.it
- Copy the code. Can you get it to work?
- Ask a friend to test your errors. Remember, we need to make mistakes in programming to learn from them.
- You'll need to create an account to save it.
Review key learning. Copy and paste your code into the Evidence Document on google classroom.
Deeper Learning.
Can you experiment with more complex code in terms of multiplication and division?
Add to your Code Academy programming from last lesson.
SUPPORT: If you need to copy some of the code, it's below.
print ("*****CALCULATOR*******")
number1 = int(input("Enter your first number:"))
number2 = int(input("Enter your second number:"))
answer = number1 + number2
print ("The answer = " + str (answer))
No comments:
Post a Comment