105k views
4 votes
Which one of the following Python expressions computes the number of miles in 5 km, where one mile is 1.61 km?

(A question about the specific Python expression would need to be provided for options)
A) 5 / 1.61
B) 5 * 1.61
C) 1.61 / 5
D) 1.61 * 5

User Anq
by
7.6k points

1 Answer

5 votes

Final answer:

The correct Python expression for converting 5 kilometers into miles, given that 1 mile equals 1.61 km, is 5 / 1.61.

Step-by-step explanation:

The correct Python expression to compute the number of miles in 5 kilometers, where one mile is equivalent to 1.61 kilometers, is 5 / 1.61.

This expression calculates the conversion from kilometers to miles by dividing the distance in kilometers by the conversion factor.

To elaborate on how the expression works, consider that if 1 mile equals 1.61 kilometers, to find out how many miles are in 5 kilometers, you would divide 5 by 1.61.

Therefore, the Python expression A) 5 / 1.61 correctly represents the conversion from 5 kilometers to miles.

User Jagan K
by
7.9k points