Output showing "None" in Terminal

2020-08-24 Thread Py Noob
Hi! i'm new to python and would like some help with something i was working on from a tutorial. I'm using VScode with 3.7.0 version on Windows 7. Below is my code and the terminal is showing the word "None" everytime I execute my code. Many thanks! print("Conversion") def km_mi(): return an

Re: Output showing "None" in Terminal

2020-08-24 Thread Py Noob
= km_mi" > are certainly wrong, but it is not clear what you intend to do. > > On Mon, Aug 24, 2020 at 4:25 PM Py Noob wrote: > >> Hi! >> >> i'm new to python and would like some help with something i was working on >> from a tutorial. I'm using V

Re: Output showing "None" in Terminal

2020-08-27 Thread Py Noob
m_mi which makes answer refer to the function km_mi(). > Put the "return answer" line at the end, where the "answer=km_mi" used to > be. > > That should help. The code calculates "answer". It prints "answer". > You should return "answ