More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard
Author: Administrator

Dry Run Testing & Trace Tables

Learning Objectives You have just completed a piece of code but when you run it, it does not behave as expected. One way to check and troubleshoot your code is to perform a dry run using a trace table. Trace

Modular Design

Learning Objectives When working on larger projects, you will need to carefully plan ahead the structure of your applications/programs. You will have to break down your application into smaller modules and will most likely want to give your end-users the

US Population

Your challenge is to write a Python program that will read through the data from the US States.txt text file provided below in order to find out: The total population in the USA (by adding the population of each of

UK Postcodes – Distance Calculator

Challenge Your challenge is to write a Python program that asks the end-user to enter two valid UK postcodes and in return displays the distance in miles or km between those two postcodes. To complete this challenge you will first

Team Generator

Context A primary school teacher has a class of 30 pupils. (See attached file called class.txt). They would like you to create a Python script that will help them make teams for group activities. Your program should ask the number

Class Register

Learning Objectives In this challenge we are going to focus on accessing a text file in Python to: Read the content of the file line by line, Write data to a new file. Before completing this challenge, you should read

Times Table Challenge

Learning Objectives By completing this challenge you are going to perform arithmetic operations in Python. You will also learn how to manipulate counted loops (for loops) and how to combine loops together using nested loops. Times Table Look at the

Higher or Lower Game

For this challenge you will design and write a program to play against the computer. The computer will display a random number between 1 and 1000. It will then ask the end-user whether they believe the next number will be

Molecular Mass Calculator

Learning Objectives In this challenge you will improve your string manipulation techniques as well as use Python to perform some basic mathematical calculations. Did you know? The molecular weight (mass) may be calculated from the molecular formula of the substance;

My Conversion Library

Learning Objectives In this challenge you will learn how to create your own library and how to use it in your programs. A library is a collection of functions and procedures. A library can then be reused in all your