+ 2
Can anyone help me with this python code ..
Making a fitness goal tracker # Im just noobie python coder and just doing introduction to python course on sololearn and using my introduction python skills 😅 This is code 👇👇 # Users active_steps counting active_steps = int(input()) counting_minutes = int(input()) # Doing logical evaluation operations to track fitness goals total_result = (active_steps > 1000) or (counting_minutes > 25) print(total_result) .... # My code public link anyone can modify 👇👇 https://code.sololearn.com/c0KKw4YAmWRI/?ref=app
8 Réponses
+ 4
CodingGeek, your code gives proper output. You have 2 inputs for your code. Active steps & counting minutes both are your inputs.
You need to input both at once just integer values. Like this
1500
30
As both values are greater than given values, your output will be "True."
If you enter only one of the value. You will receive EOF error. Because you did not entered 2nd value.
+ 6
CodingGeek Pls Consider D Shah 🎯⏳️ 's message: include in the question description a description of what you're trying to do.
Also, get used to a good way of sharing code: save it in Code Playground, make it public, then add a link to it in the question description, using "+" button. This way, anyone can test your code and you avoid copy errors.
+ 5
You need more “words”; be more specific with your code.
In the input() you should maybe ask how many steps do they have or how many minutes have they exercised or been standing.
If you learned “if, else” statements, you can do a little more with this code.
+ 5
Happy to help and know your code error is resolved :)
Now you can add [Solved] at the beginning of your question, as you don't need further assistance with it.
Happy learning and coding.
+ 4
Still what your task is (task description) and what you to achieve is missing.
For now, try removing parentheses for logical evaluation and check again if it works.
+ 3
Share your code, add proper tag and description to your question.
+ 3
ThankYou to solve my python code error 😀
D Shah 🎯⏳️
+ 1
# Users active_steps counting
active_steps = int(input())
counting_minutes = int(input())
# Doing logical evaluation operations to track fitness goals
total_result = (active_steps > 1000) or (counting_minutes > 25)
print(total_result)