First, click "Solve the Problem:" to see detailed instructions and useful information.
Second, try to code a solution to the problem using the embedded Python coding environment.
Third, if you are finding it difficult, you can click "Get Some Hints:" to see some tips to help you solve the problem. There is also music to help you focus midway down the page.
Finally, at the bottom of the page, there is an embedded Form where you can paste and upload your completed solution.
Once you have uploaded your code there will be a link to the solution at the end of the Form, so just like in the exam even if you can't entirely finish the solution, upload as much as you have been able to and you can then see the correct answer afterwards to see where (if anywhere) you went wrong.
The first two lines here are going to be taking inputs as whole numbers (integers) and saving them to variables to use in the later calculation. Something like:
minutes = int(input("How many minutes have you used? "))
texts = int(input("How many texts have you sent? "))
The only other thing to be added to the bill is the monthly £10 charge. This is the same every time - it doesn't ever change value in our algorithm. Therefore, we can create a constant to save it in and use in our calculation later. Creating a constant is the same as creating a variable using assignment without an input line - the only difference is there will be no lines of code in the algorithm that can change its value, only use the value it already has - it stays constant:
monthly_charge = 10.00
Now we can work out how much those minutes and texts cost. We can create new variables, and use assignment and the formulas provided to give them the correct values:
minute_cost = minutes*0.10
text_cost = texts*0.05
Finally, add up the total and save it to an appropriately named variable, and print it out (concatenated with a relevant message, if you like...):
total_cost = monthly_charge+minute_cost+text_cost
print("Your total bill this month comes to £"+str(total_cost))
Note: I have concatenated by using the + operator and casting the total_cost variable as a string using str() because I wanted the £ in the previous string to be joined to the number without a space, which concatenating with a comma would have created by default. But it doesn't really matter - I am just being fussy!