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,
- Append data at the end of the file,
- Write into a new text file.
To complete these challenges we recommend you to use Coding Ground which let you code online and use multiple files. You will first need to create a text file to copy the content of the playlist (from the text file given below)

Challenge #1
Your first challenge consists of writing a Python script that will read the following text file, one line at a time and display the content of each line on screen.

My Playlist.txt
As you are willing to complete this challenge we assume that you already have some good Python skills. To learn more about accessing text files in Python, you will first need to do some research on the Internet.
Challenge #2
Your second challenge consists of opening the text file with Python in “write” mode to add the following song at the end of the playlist:
“Happy” by Pharrell Williams – Duration: 3:52
You will need to research the Intenet on how to write at the end of a text file.
Challenge #3
For your third challenge you will edit the playlist so that the song “Happy” by Pharrell Williams appear in third position.
The aim of this blog post is to create a countdown timer that will display the numbers on screen using a 7-segment display. A lot of electronic devices use this approach to display numbers on a LED or LCD screen. (Watch, alarm clock, calculator etc.)



















Check the following code used to simulate a lamp going on and off to reproduce an SOS call in Morse code: … — …

“The Twelve Days of Christmas” is an English Christmas carol that enumerates in the manner of a cumulative song a series of increasingly grand gifts given on each of the twelve days of Christmas.


This challenge consists of creating a computer program that displays a random selection of 7 letters to the end-user. Each letter is given a value based on the values used in the game of Scrabble.
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.

