Python - Advanced - 101 Computing https://www.101computing.net Boost Your Programming Skills! Tue, 01 Oct 2024 14:12:11 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/101-1-100x100.png Python - Advanced - 101 Computing https://www.101computing.net 32 32 Smoothies Ingredients Data Set https://www.101computing.net/smoothies-ingredients-data-set/ Tue, 01 Oct 2024 14:01:21 +0000 https://www.101computing.net/?p=20677 For this programming challenge, we are going to practise reading and extracting data from a JSON file. We will be using a JSON file storing information about the ingredients and recipes for 20 different smoothies. JavaScript Object Notation (JSON) JavaScript

The post Smoothies Ingredients Data Set first appeared on 101 Computing.

]]>
Paris 2024 – JSON Challenge https://www.101computing.net/paris-2024-json-challenge/ Mon, 19 Aug 2024 20:45:20 +0000 https://www.101computing.net/?p=20437 The Paris 2024 Olympics provided a great opportunity for around 10,500 athletes to compete in 329 events, each event giving an opportunity for competing athletes to win one of the three medals: Gold, Silver and Bronze. All together, 206 countries

The post Paris 2024 – JSON Challenge first appeared on 101 Computing.

]]>
Flappy Bird Animation using Pygame https://www.101computing.net/flappy-bird-animation-using-pygame/ Mon, 15 Apr 2024 19:29:01 +0000 https://www.101computing.net/?p=19930 In this blog post we are going to investigate how to animate a sprite when creating a video game using Python and the Pygame library. We will aim to create a frame-based animation using a rnage of graphics for our

The post Flappy Bird Animation using Pygame first appeared on 101 Computing.

]]>
Snake Game Using Python https://www.101computing.net/snake-game-using-python/ Thu, 21 Mar 2024 15:58:08 +0000 https://www.101computing.net/?p=19880 In this Python programming challenge, we are going to revisit the classic game called Snake. In this game, the player controls a snake using the arrow keys of the keyboard. The snake can go in all four directions (up, down,

The post Snake Game Using Python first appeared on 101 Computing.

]]>
Poem Decoding Challenge https://www.101computing.net/poem-decoding-challenge/ Wed, 20 Dec 2023 11:06:38 +0000 https://www.101computing.net/?p=19063 To celebrate the start of the Winter, we have asked our Artificial Intelligence “AI-101” to generate a poem about the cold winter weather. The AI has generated the following poem which consists of a list of numbers! We believe the

The post Poem Decoding Challenge first appeared on 101 Computing.

]]>
The Moroccan Spices Box Set Puzzle https://www.101computing.net/the-moroccan-spices-box-set-puzzle/ Mon, 23 Oct 2023 10:05:37 +0000 https://www.101computing.net/?p=18867 In the heart of the medina of Marrakech, you will find one of the largest and most colourful souks in Morocco. In this souk, you will find merchants selling traditional clothing, multicoloured carpets, pottery, jewellery, antiques, lanterns, spices, etc. On

The post The Moroccan Spices Box Set Puzzle first appeared on 101 Computing.

]]>
Standard Deviation Algorithm https://www.101computing.net/standard-deviation-algorithm/ Fri, 13 Oct 2023 11:24:05 +0000 https://www.101computing.net/?p=18825 In statistics, given a set list of numbers, the standard deviation is a measure of the amount of variation or dispersion within the set. A low standard deviation indicates that the values tend to be close to the mean value

The post Standard Deviation Algorithm first appeared on 101 Computing.

]]>
The Birthday Paradox https://www.101computing.net/the-birthday-paradox/ Tue, 21 Feb 2023 09:38:39 +0000 https://www.101computing.net/?p=17513 The birthday paradox is based on a counter-intuitive fact that in any class of 23 students or more, there is a higher probability of having at least two students sharing the same bithday. Considering that there are 366 different possible

The post The Birthday Paradox first appeared on 101 Computing.

]]>
The Monty Hall Problem https://www.101computing.net/the-monty-hall-problem/ Thu, 02 Feb 2023 17:21:57 +0000 https://www.101computing.net/?p=17345 The Monty Hall problem is a counter-intuitive brain teaser based on probabilities. This puzzle is named after Monty Hall, the TV presenter of “Let’s Make a Deal”, an American TV show (known as “Deal or No Deal” in the UK)

The post The Monty Hall Problem first appeared on 101 Computing.

]]>
Bouncing Algorithm in a platform game https://www.101computing.net/bouncing-algorithm-in-a-platform-game/ Tue, 07 Jun 2022 13:54:54 +0000 https://www.101computing.net/?p=14187 In this blog post we will investigate how to implement a bouncing algorithm used either in a platform game when the main sprite collides with a platform or in a breakout game when the ball bounce against a brick. (x,y)

The post Bouncing Algorithm in a platform game first appeared on 101 Computing.

]]>