Ahakoa he iti he pounamu
Although it is small, it is greenstone - This is a humble way to deliver a small gift.
Python is a powerful and friendly programming language that lots of developers all over the world love to use. It's known for being easy to understand and write, and it's really useful.
It was created by Guido van Rossum in the late 1980s, and because it's open-source (which means anyone can use it and help make it better), there are lots of developers working on it. This has led to a big collection of tools and things you can use with Python.
Python is great for all sorts of things, like making websites, looking at data, creating artificial intelligence, and doing tasks automatically. Whether you're just starting to learn to code or you've been doing it for a while, Python is a good choice because it's clear and can handle both simple and complex projects.
Watch this video!
Pick one of these to do as a refresher
It takes time, effort and perseverance to learn programming!
You are going to work through the Grok Python for Beginners course. This course takes 8 - 15 hours and we will spend 4 weeks, 10hrs of class time on this.
Go to Grok and Login with your school email.
You have all been added to your class and you will see you have been allocated the Beginners Python Course.
Complete the 10 modules.
* Achieved *
Complete to Module 6
** Merit **
Complete to Module 8
*** Excellence ***
Complete to Module 10
Are you going to our BHS Programming Club? Every Friday lunchtime in P14. Anyone is welcome, as long as you are keen to learn you can be newbies through to experts.
Get a team together and get involved! It's normally in June, held on a Saturday at UC. You just need to be keen, even if you are a beginner. Great way to get some experience and see how it all works. It's an awesome day.
If you love this competition then the NZ Programming Competition follows. The website has the details and again you go to UC to take part.
The Home of competitive programming. Use the "Train" section to try out some of the questions from past NZ and international competitions. And you can sign up to compete.
HOW MANY POINTS CAN YOU GET?
Practice your problem decomposition and puzzle solving skills in Python in the excellent site: CodeWOF.
CodeWOF goes from beginner to intermediate and is great programming practice. It has cool short puzzles to solve and immediate feedback.This short video will help you get started using CodeWOF.
From the basics of how it works and what the problem types are to more advanced topics around string slicing, functions and dictionaries.
Watch this to get you started on one of the best practice resources for Python Programmers in the world.
This is a cool way to learn programming that teaches you Python programming through setting challenges inside a game.
Code Combat is free (up to a point) so you can work through at home too! Use your school email to create an account.
This website is used as a recruitment tool for Google and Microsoft! Tackle some real brain-bending problems in Python and maybe even get on the global leaderboards.
The ultimate challenge for programmers.
W3Schools is one of the best places to go for an in-depth tutorial and reference for programming in Python.
Learning to program in Python is hard and you are going to have to persevere.
Read the tutorials, try it in in the "Try it yourself" boxes and experiment with each one to help you get a better understanding of each topic.
Maybe you already know how to program in Scratch and want to know what it looks like in Python?
This document goes through some standard small Scratch programs and shows what the same program looks like in Python.
It also contains some explanations about the Python language and the weird things it needs like "tabs" that define code blocks.
This is an easy to watch and follow along tutorial to learn Python.
Mosh takes you from complete beginner to expert in an hour.
Well worth watching if you have never programmed before. But it is an hour long!!
If you are struggling with understanding programming watch this for homework!!
Visual Studio Code (VS Code) is a free, open-source code editor made by Microsoft. It's popular because it supports many programming languages, including Python, and is easy to use. VS Code is highly customizable, has strong debugging tools, and includes an integrated terminal. For Python developers, it offers helpful features like code suggestions, error checking, and easy integration with version control systems. This makes it a great tool for both beginners and experienced programmers.
Open Visual Studio Code on your computer
Create a new file by pressing File > New File
Type "helloWorld.py" into the box and press Enter and save it in your H: Drive
Type print("Hello World") into the program. Then run it by pressing the arrow in the top right corner.
You may need to allow the program to run if you get an error message by typing R into the Terminal at the bottom of the screen and running the program again!
Now have a go at solving a few Code WoF problems using Visual Studio Code to write the code and copying it across. A few common mistakes:
Computers don't care about saying nice things. make sure your input() does not contain a string. An example of what not to do would be input("Please write a number" ), just leave your input() blank.
The progress outcomes describe the significant learning steps that students take as they develop their expertise in computational thinking for digital technologies.
At the end of this topic students will have had the opportunity to cover;
understand that there can be more than one algorithm for the same problem PO3
decompose problems into step-by-step instructions to create algorithms for computer programs PO3
use logical thinking to predict the behaviour of the programs PO3
develop and debug simple programs that use inputs, outputs, sequence, and iteration PO3
students decompose problems to create simple algorithms using the three building blocks of programming: sequence, selection, and iteration PO4
implement these algorithms by creating programs that use inputs, outputs, sequence, basic selection using comparative operators, and iteration PO4
debug simple algorithms and programs by identifying when things go wrong with their instructions and correcting them PO4
be able to explain why things went wrong and how they fixed them PO4
evaluate the efficiency of algorithms PO4
recognise that computers need to search and sort large amounts of data PO4
They also evaluate user interfaces in relation to their efficiency and usability P04
students independently decompose problems into algorithms. They use these algorithms to create programs with: inputs, outputs, sequence, selection (using: comparative and logical operators, variables of different data types), iteration. P05
determine when to use different types of control structures. They document their programs, using an organised approach for testing and debugging P05
develop programs considering human-computer interaction (HCI) heuristics P05