-4

Ok so I'm working on a problem in my python class. I've gotten most of it figured out aside from print statements. I assigned the arguements correctly (I think) and am just trying to get the text to print correctly on the terminal side. What am I doing wrong here?

here is what I currently have

is the example that mine is supposed to look similar to

  • 3
    Please include code and results as text in the question, not as images. – mkrieger1 Jan 27 '21 at 17:32
  • Please note that [an image of your code is not helpful](http://idownvotedbecau.se/imageofcode). Please [edit] your question to include a [mre] as text. – EJoshuaS - Stand with Ukraine Jan 27 '21 at 17:38
  • Stack Overflow is not intended to replace existing documentation and tutorials. We expect you to do appropriate research before posting a question here. Also, off-site links and images of text are not acceptable, in keeping with this site's purpose. – Prune Jan 27 '21 at 17:57
  • Please repeat [on topic](https://stackoverflow.com/help/on-topic) and [how to ask](https://stackoverflow.com/help/how-to-ask) from the [intro tour](https://stackoverflow.com/tour). – Prune Jan 27 '21 at 17:57

1 Answers1

1

you could use f string print statements too like this:

print(f"distance in knots is: {distance_in_knots}")
Asocia
  • 5,935
  • 2
  • 21
  • 46
rachelyw
  • 126
  • 10