Answer:
Follows are the code to the given question:
def steps_to_miles(user_steps):#defining a method steps_to_miles that takes a variable user_steps
return user_steps/2000#use return to calculate the steps
user_steps = int(input())#defining a variable user_steps that holds value from the user-end
print('%0.2f' % steps_to_miles(user_steps))#defining print that calls the steps_to_miles method
Output:
5345
2.67
Explanation:
In this code a method "steps_to_miles" that takes "user_steps" in the parameter inside the method a return keyword is used that calculates the user steps and return its values.
Outside the method, a "user_steps" variable is declared that inputs the value from the user-end pass into the method and prints its value.
Answer:
No.
Explanation:
From my knowledge, negative 8 is 8 units to the left of zero, while 21 is 21 units to the left.
This means that they are two different negative numbers! If you see an equation like this, it would be labeled as false.
I'm quite sure I am correct, tell me so if otherwise! :)
#SpreadTheLove
Answer: The correct answer is A. I just answered this question myself!
The person can keep up their bills and payments and send them off in time. keep your balances low and try to never go into debt. I you do get into debt than pay it off when you get the chance instead of forgetting about it.
Answer:
You will get compile error
Explanation: