Avatar

Avatar
MrsAnderson

Monday, 28 November 2016

8wa CP3 Python 3 - Calculator P3 LRC Tues 29th November





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

  1.  Open up www.repl.it
  2. Copy the code.   Can you get it to work?
  3. Ask a friend to test your errors. Remember, we need to make mistakes in programming to learn from them.
  4. 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