Liam has written a program to calculate electricity bills.
1 base_rate = 0.15
2 username = input("Enter your name: ")
3 units_used = int(input("Enter units consumed: "))
4 total_cost = base_rate * units_used
5 print("User " + username + " owes " + str(total_cost))
Identify the line number where a variable is assigned a numeric value entered by the user.
5 exam-style questions on Edexcel IGCSE Computer Science Input/output. Each one has a worked solution and a mark scheme showing where the marks go.