Coding in Python

Screen Shot 2014-01-13 at 11.02.39

This half term, Year 6 will be learning to program in Python. Python is a programming language that can be used to create computer programs, such as games. 

Unlike Scratch, which pupils used in Year 5, Python code is constructed from algorithms made from lines of text, rather than dragging together blocks to form code. 

Here is an example of a section of code from Scratch with the equivalent code written in Python. 

Screen Shot 2014-01-13 at 11.05.47

To learn to program in Python, we must learn the language of Python, called its syntax. We started last week by using the four numerical operations to complete some calculations:

Screen Shot 2014-01-13 at 11.04.24

 

We also introduced the print command which can be used to display text or numbers within our programme. 

Python is free to download here: 

http://www.python.org/download/ Please select Python 2.7.6 for either Windows or Mac. 

And here are some excellent websites with ideas and resources for Python projects 

http://primarycomputing.co.uk/python-resources/

http://www.pythoncode.co.uk

 

Advertisements
This entry was posted in Topics in Lesson. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s