+ 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

5th Jun 2023, 11:14 AM
CodingGeek
CodingGeek - avatar
8 odpowiedzi
+ 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.
5th Jun 2023, 2:25 PM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 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.
5th Jun 2023, 11:38 AM
Emerson Prado
Emerson Prado - avatar
+ 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.
5th Jun 2023, 11:33 AM
Gee Hadley
Gee Hadley - avatar
+ 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.
5th Jun 2023, 3:20 PM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 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.
5th Jun 2023, 11:23 AM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 3
Share your code, add proper tag and description to your question.
5th Jun 2023, 11:15 AM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 3
ThankYou to solve my python code error 😀 D Shah 🎯⏳️
5th Jun 2023, 2:57 PM
CodingGeek
CodingGeek - avatar
+ 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)
5th Jun 2023, 11:18 AM
CodingGeek
CodingGeek - avatar