0

Python developer's course practice fitness goals

Can anyone give me the answer for Python developer's course practice fitness goals . please

31st Mar 2024, 5:23 AM
ARYAN Khuman
ARYAN Khuman - avatar
6 odpowiedzi
+ 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.
31st Mar 2024, 8:50 AM
Lothar
Lothar - avatar
+ 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.
29th Jun 2024, 9:10 PM
Lothar
Lothar - avatar
+ 2
I can't see the code (your code). but you need 2 integer inputs, 2 comparisons with "or" operator, and output the result
31st Mar 2024, 8:02 AM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 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.
30th Jun 2024, 6:27 AM
Lothar
Lothar - avatar
+ 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.
29th Jun 2024, 10:43 PM
Muhammad Usama Zain
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)
29th Jun 2024, 1:02 PM
Muhammad Usama Zain