Chapters 1 & 2
Lesson Objectives
- use maths operators successfully in Python
Starter
Read
the Maths
section on pg 19 and 20
Main
Python is great for maths tasks, today you will investigate some of it's powerful tools.
Red Task
Explain the difference in outputs between / (divide normal) and // (divide integer)?
~~~Evidence~~~
1. Write a short program that makes use of both / and //
- print it , stick it in your book and write a note to explain the difference
Orange Task
Combining text and maths - copy the code on pg 21
~~~Evidence~~~ to edit
1. Write a short prgram of your own that uses %modulus
- print it , stick it in your book and write a note to explain it's purpose
Green Task
Add two new posts to your blog showing what you have covered in the last two sessions
Blog Posts (to finish for hwk)
Add the following notes/code snippets to your blog
- understanding how to change the layout of text on screen \n, \t, \\, \"
- using maths operators successfully in Python -, *, +, /, //, %
Plenary
Add two new posts to your blog showing what you have covered in the last two sessions
Blog Posts (to finish for hwk)
Add the following notes/code snippets to your blog
- understanding how to change the layout of text on screen \n, \t, \\, \"
- using maths operators successfully in Python -, *, +, /, //, %
Further reading - http://learnpythonthehardway.org/book/ex3.html
No comments:
Post a Comment