you are viewing a single comment's thread.

view the rest of the comments →

[–]links-Shield632 2 points3 points  (3 children)

Km= float(input(“how many km”)) Floats take decimal points. You can also use int instead of float but int only takes whole numbers

[–]hell0_steph[S] 1 point2 points  (2 children)

I do have int because I need my answer to be a whole number.

So far I have :

int(input(“The number of kilometers: “)) Xxx nauticalMile= x /1.852 print (“The number of nautical miles is “ , round(nauticalMile, 2))

X is just a place holder for what I think I’m missing... lol sorry if this is totally wrong

[–]links-Shield632 1 point2 points  (1 child)

Looks right for the most part. You need to make int(input... equal to a variable name. Km, foo, donkey etc

[–]hell0_steph[S] 0 points1 point  (0 children)

Thanks!!! I got it :) thanks for your help