Creating Relationships Relationships in a database are important to reduce redundancy. have a look at the following slides to see why normalisation is important. More to follow on normalisation and the different stages to normalise data. Tutorials in the series:
While Loops are similar to for loops because they repeat segments of code. However in a for loop, you specify how many times a segment of code should repeat. With a while loop, you need to set the condition to make the code stop repeating the specified segment. Setting the condition is similar to that more »
Input allows a user to add data to a variable for use later in the programme. This is great if you want to ask the user for anything such as their age or anything else! by default Python always assumes all input data is a string datatype. To change this wrap the input function within more »
Adding interactivity to a website can be very simple. Many websites offer content that can be embedded for free such as vimeo, youtube, Souncloud or google Drive documents. This assessment objective looks at how to create interactive elements. The slideshow shared with my students below has many useful video links to help out.
Reading Text from a File Everything we have done so far only adds text to a text file and closes the file. Nothing is displayed (printed) on our screens. Now we want to take information from a text file and display it on our screens. Notice how the code below on line 1 when opening more »