Skip to content

Course home

Operators

Operators

EasyMedium
1234567
Question 5

Marcus has written a program to monitor fitness tracker data.

1  steps_goal = 10000
2  user_steps = int(input("Enter steps: "))
3  active_minutes = int(input("Enter active minutes: "))
4
5  if user_steps >= steps_goal and active_minutes >= 30:
6      print("Daily goal achieved!")
7  else:
8      print("Keep active!")

Identify a line number where the code includes a logical operator.

[1]
Markscheme

Operators Questions

  1. IGCSE
  2. /Computer Science
  3. /Operators

9 exam-style questions on Edexcel IGCSE Computer Science Operators. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank