6 Antworten
+ 5
ARYAN Khuman ,
it doesn't make much sense to give a ready-made code.
please do a try by yourself first. if you get stuck somewhere, put the code in playground, save it there, copy the link to this code and post this link here.
+ 3
Muhammad Usama Zain ,
it is not seen as very helpful when we are going to post a ready-made code, as long as the op has not shown his attempt here.
it is more helpful to give hints and tips, so that the op has a chance to find a solution by himself.
+ 2
I can't see the code (your code).
but you need 2 integer inputs, 2 comparisons with "or" operator, and output the result
+ 2
Muhammad Usama Zain ,
an asker should do at least a try by himself and link this code here. it is not about to have a correct working solution.
if he can not do this, he should repeat the previous lessons.
having a look at the code-bits that the aker has done in the past, i can see that he has already done some more challenging codes compared to the `fitnes code`. so i assume he should be able to solve the task.
+ 1
Lothar
Hi.
Yeah you are right but sometimes if someone try and still not able to get the answer after multiple times of struggling, then we should help him/her as well so that he / she can learn from his mistakes and grow as well instead of just keep repeating the above.
Also coding and programming is more about the practice.
Thank you 😊
Best of luck 👍
Have a great week ahead.
0
# 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>1000 or active_minutes>30
# Display the result on the screen
if steps > 10000 or active_minutes > 30:
print(True)
elif steps < 10000 and active_minutes < 30:
print(False)