GithubHelp home page GithubHelp logo

chrisglencross / python-lessons Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.74 MB

Materials that I've been using for teaching Python to year 4-6 children (KS2).

License: MIT License

Python 100.00%

python-lessons's Introduction

python-lessons

This project contains some materials that I have been using to teach children an introduction to Python during the summer term of 2016.

I've been working with a group of 6 children (ages 8 to 11), with one hour per week.

Lesson 1: This lesson actually took 2 weeks.

  • IDLE Python Shell.
  • Saving and running Python programs.
  • The print() function.
  • Understanding some Python error messages.
  • Values: Strings, Numbers, Lists.
  • Number arithmetic, string concatenation.
  • Using variables for storing values.
  • if / else conditions.
  • while loops with counters.
  • Importing the random module and using random.choice().

Lesson 2:

  • for loops
  • Sequences
  • Turtle graphics
  • An introduction to functions

Lesson 3:

  • Caesar cipher project

Lesson 4: This lesson took two weeks.

  • Data Structures: lists, sets and dictionaries.
  • Calculating prime numbers with sets.
  • Escape from Stamford Green adventure game (version 1)
  • Not in the materials, but we also spend a bit of time with class members adding their own rooms to the maze and making random events happen: a teacher occassionally appears and sends you to the staff room. There was a question about how, on completing the game, it could tell you how quickly you did it. This influenced the time.time() functionality in the next lesson!

Lesson 5:

  • Type conversions
  • Simple exception handling
  • Timing with time.time()
  • Times Table Test game

Lesson 6:

  • More turtle graphics: filling shapes, choosing colours, clicking on turtles, many turtles, and making your own turtle shapes.

python-lessons's People

Contributors

chrisglencross avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.