Categories: All Variables and Constants  String manipulation  Builtin functions  Input and output  Arrays  Conditional logic  Repetition / Iteration  Functions / Procedures 

Show:

This resource is designed as a quick reference or revision guide. It has not been endorsed by any exam boards. If you spot any mistakes, please let me know and I'll fix them asap.

Introduction

This website aims to give a quick reference for VB.NET, Python and C# and pseudocode and is aimed primarily at teachers & students working towards a GCSE or A Level in Computer Science

VB.NET, Python and C# are programming languages designed to be understood and followed by computers. Pseudocode is not a programming language: it's written to be understood by humans so that they can turn it into any programming language.

Top Tips:

  • Explore the different categories of skills at the top of this page
    Each skill has example code in Python, C#. You can also enable VB.NET and Pseudocode for OCR GCSE if you'd find that useful.
  • Search for a specific skill
    If you know what you're looking for, use the search bar above the categories list.
Skill
Description
VB.NET
Python
C#
Greater than or less than
   

If you need to compare two expressions you will need the greater than or less than operators.

An expression can be a variable or combination of variables & data (e.g. 1 + 1)

An operator is a symbol that means add, subtract or something similar.

This example asks the user to enter a password and displays how strong that password is based purely on the length:

Less than 5 characters: weak

More than or equal to 8 characters: strong

Otherwise: medium

password = input("Please enter a password") if len(password) >= 8: print("strong") else: if len(password) < 5: print("weak") else: print("medium")
Console.WriteLine("Please enter a password"); string password = Console.ReadLine(); if (password.Length >= 8) { Console.WriteLine("strong"); } else { if(password.Length < 5) { Console.WriteLine("weak"); } else { Console.WriteLine("medium"); } }

Loading...