Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python

# Take steps and minutes as inputs steps = int(input()) active_minutes = int(input()) # Store the result of the operations in the variable steps_goal = 10000 minutes_goal = 30 goal_achieved = steps >= steps_goal and active_minutes >= minutes_goal # Display the result on the screen print(goal_achieved ) Could anyone help with this please?

18th Jan 2024, 11:27 AM
Kosi
2 Answers
+ 5
Read the task instruction carefully: The goal will be reached when there are **more than** 10000 steps **or** **more than** 30 minutes of activity.
18th Jan 2024, 12:07 PM
Lisa
Lisa - avatar
0
It will result in TRUE when the inputted steps is greater than or equals 10000 and when the inputted active_minutes is greater or equals 30
20th Jan 2024, 11:29 AM
Ekojoe Covenant Lemom
Ekojoe Covenant Lemom - avatar