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…
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…
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…
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…
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…
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…
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…
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…