+ 1
please help, 2 test case need to be true while 1 test case need to be false
# Take steps and minutes as inputs steps = int(input()) active_minutes = int(input()) # Store the result of the operations in the variable goal_achieved = steps < active_minutes # Display the result on the screen print(goal_achieved)
4 odpowiedzi
+ 7
Bayu Setiawan
the ( conditions ) are as follows:
( condition 1. )
steps > 10000
or
( condition 2. )
active_minutes > 30
IF one or the other ( condition ) is met than goal_achieved
These conditions are boolean in nature as in true or false
+ 7
the exercise is from the `python developer` tutorial, module: `working with data`, practice: `fitnes goals`.
task description:
A user is considered to have achieved the daily fitness goal when the number of steps is greater than 10000 or the number of active minutes is greater than 30.
Task:
Complete the code to output True if the user has achieved the daily fitness goal, and False otherwise.
+ 6
Please share more details about your task. What is that you want to achieve. The information you provided is incomplete.
Hints:
● check if you have to take just *input()* or take it as integer input *(int(input())* as you have given for variables *steps & active_minutes*
● do you have to determine *boolean values for goal_achieved* variable?
+ 2
What do you mean?
You can't change the output of the test cases, you have to find a way to make it works good.
Could you give me the challenge description? I can't help you if you don't tell me what the code is doing, or without the challenge description.
And also, please send us your link to the code instead of writing it down here, so we can easily run the code and fix the error, or modify your code to make it better.