Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

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]

Operators Questions

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