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.
<span>The answer should be: Virtual Desktop Infrastructure</span>
Answer
The correct answer is option(C) which is "Index".
Explanation:
Array elements can be differentiated because each element in the array have different index value.In the array all elements are of same data type, so we can not differentiated them on the basis of data type. Also an array can have same value many times, That is why we can not differentiated them on this basis. In the array elements are from any range, so its not possible to distinguish them on range. We can only distinguish elements of an array on their index value because each element have different index in the array.
Answer:
a = float(input("Enter Side A: "))
b = float(input("Enter Side B: "))
c = float(input("Enter Side C: "))
d = float(input("Enter Side D: "))
e = float(input("Enter Side E: "))
area1 = 1.0* a * b
area2 = (a - c) * (d - e -b)
area3 = 0.5 * (a - c) * e
print ("Room Area: " + str(area1 + area2 + area3))
Explanation:
happy to help ^3^
Answer:
The intersection of rows and columns in a worksheet is called a cell