Feedback for PYTH60 problem

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

Feedback

1 mile = 1.6 km

Given solution is :

mile = int(input())
km = int()

km = 1.6 * mile

Its wrong, requires correction.

Here is your code: @rupaligovil
m=int(input())
km=m*1.6
print(km)

Hi @rupaligovil
In your code, you not need to write km=int()
Code-

hi,

Multiplicator factor of 1.6 is at the wrong side in your code. If km = 1.6*m, that means km is 1.6 times of mile which is not. What I mean is below and hence requested for correction in th formula.

1 mile =1.6 km
1/1.6 mile = 1 km
1 km = 1/1.6 m
1 km = 0.63 m

Thanks,
Rupali Govil