More results...

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

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

Roulette (Betting Game)

Rules of the Game A player starts the game with 10 chips. For each game the player should be asked how many chips they want to bet. They should not be allowed to bet more chips than they actually own. Then the user

The YOLO Challenge

The YOLO challenge consists of creating an acronym generator: a program that prompts the user to enter an expression or a sentence (e.g. “You only live once!”) and in return gives the acronym matching the user input (e.g. “YOLO”) Learning

Fizz-Buzz Game

Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word “fizz”, and any number divisible by five with the word “buzz”.

Secret Santa

Learning Objectives This set of challenges focuses on the use of lists in Python. You will learn how to: Initialise a list Add and remove values to a list Find out the length (number of items) of a list Access

Rock-Paper-Scissors

Did You Know? Rock-paper-scissors is a hand game usually played by two people, where players simultaneously form one of three shapes with an outstretched hand. The “rock” beats scissors, the “scissors” beat paper and the “paper” beats rock; if both

Let it snow…

Check this work from year 8 working on the snowflake challenge. Click on each snowflake to see the source code. By Chloe By Phil By Poojan By Lucy By Ben By Thomas By Charlie By Emily By Jude By Katie

My Logo in Python

Using all the skills we covered in the previous few challenges, we are going to adapt a script to create our own logo using Python Turtle. First let’s look at the following code: Challenge Your challenge consists of tweaking this

Snowflake Challenge

Learning Objectives In this challenge we will use our Python Turtle skills to draw a snowflake. We will use iteration (For Loop) to recreate each branch of the snowflake. Step 1: The first branch First, let’s recap on the main

Leap Year?

Challenge #1: Leap Year? Write a program that lets the end-user enter a year using 4 digits (“yyyy” format). The program should inform the user whether the year entered is a leap year or not. Challenge #2: Valid and Invalid