Image 1 of 1: ‘A line graph showing the GDP of each country in Europe between 1952 and 2007. Unhelpfully, the dependant variable has been assumed to be the column headers, rather than the rows.’
Figure 2
Image 1 of 1: ‘A line graph showing the GDP per capita of 5 European countries, from 1952 through to 2007.’
Figure 3
Image 1 of 1: ‘Diagram illustrating how the axis keyword changes the axis along which the mean() function operates.’
Figure 4
Image 1 of 1: ‘A line graph showing the change in the average GDP of European countries.’
)
Figure 5
Image 1 of 1: ‘A figure which contains three subplots, side-by-side’
Figure 6
Image 1 of 1: ‘A figure with 3 subplots, each labelled with the statistic that they display.’
Image 1 of 1: ‘veg is represented as a shelf full of produce. There are three rows of vegetables on the shelf, and each row contains three baskets of vegetables. We can label each basket according to the type of vegetable it contains, so the top row contains (from left to right) lettuce, lettuce, and peppers.’
Figure 2
Image 1 of 1: ‘veg is now shown as a list of three rows, with veg[0] representing the top row of three baskets, veg[1] representing the second row, and veg[2] representing the bottom row.’
Figure 3
Image 1 of 1: ‘veg is now shown as a two-dimensional grid, with each basket labelled according to its index in the nested list. The first index is the row number and the second index is the basket number, so veg[1][3] represents the basket on the far right side of the second row (basket 4 on row 2): zucchini’
Image 1 of 1: ‘Output from the first iteration of the for loop. Three line graphs showing the yearly minimum, maximum and average GDP over the years for the countries in the first dataset.’
Figure 2
Image 1 of 1: ‘Output from the first iteration of the for loop. Three line graphs showing the yearly minimum, maximum and average GDP over the years for the countries in the second dataset.’
Figure 3
Image 1 of 1: ‘Output from the first iteration of the for loop. Three line graphs showing the yearly minimum, maximum and average GDP over the years for the countries in the third dataset.’
Image 1 of 1: ‘A flowchart diagram of the if-else construct that tests if variable num is greater than 100’
Figure 2
Image 1 of 2: ‘A flowchart diagram of a conditional section with multiple elif conditions and some possible outcomes.’
Image 2 of 2: ‘A flowchart diagram of a conditional section with multiple if statements and some possible outcomes.’
C gets printed because the first two conditions,
4 > 5 and 4 == 5, are not true, but
4 < 5 is true. In this case only one of these conditions
can be true for at a time, but in other scenarios multiple
elif conditions could be met. In these scenarios only the
action associated with the first true elif condition will
occur, starting from the top of the conditional section.
This contrasts with the case of multiple if statements,
where every action can occur as long as their condition is met.