Tag: List

All Stars Football Team

In this challenge we are looking at how a list can be used to store all the players’ names of a football team. Using a set of functions we then manipulate this list to: Find a value in a list

Lottery Numbers

In this challenge we are going to write a Python program that automatically generates six random numbers (from 1 to 50) and display them on the screen, sorted in ascending order. The program will need to make sure that each

Fruit Machine

Learning Objectives In this challenge you will complete a full Python Program to simulate a fruit machine. You will use the random library to randomly select a fruit to display on screen. You will use if statements to check if

Blackjack Challenge

In this challenge you are going to create a blackjack game for one player. The computer will be the dealer. Rules of the game Source: wikipedia. “Blackjack, also known as twenty-one, is the most widely played casino banking game in

Battleship Challenge

For this challenge we are not going to recreate a full battleship game. Instead we are going to focus on randomly placing the ships on the grid using an algorithm. The code given below uses Python Turtle to draw the

Weather Forecast Report

This challenge consists of using Python to generate a random weather forecast report. Learning Objectives: By investigating this challenge you are going to further improve your skills at: Using lists and accessing values of a list randomly, Concatenating strings together