Re: Output showing "None" in Terminal

2020-08-27 Thread Py Noob
er" at the end, after it has been calculated. > > --- Joseph S. > > -----Original Message----- > From: Py Noob > Sent: Monday, August 24, 2020 9:12 AM > To: python-list@python.org > Subject: Output showing "None" in Terminal > > Hi! > > i'm new t

Re: Output showing "None" in Terminal

2020-08-26 Thread Terry Reedy
On 8/24/2020 4:41 PM, Calvin Spealman wrote: "None" is the default return value of all functions in Python. But, the interpreter is supposed to suppress it as a displayed result. In batch mode, expressions are not echoed. In interactive move, expression values other than None are echoed. Th

RE: Output showing "None" in Terminal

2020-08-25 Thread Schachner, Joseph
sage- From: Py Noob Sent: Monday, August 24, 2020 9:12 AM To: python-list@python.org Subject: Output showing "None" in Terminal 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 Wind

Re: Output showing "None" in Terminal

2020-08-25 Thread dn via Python-list
On 25/08/2020 01:12, 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 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("Co

Re: Output showing "None" in Terminal

2020-08-24 Thread Py Noob
Thank you for the clarification. What I'm trying to achieve here are: User be able to choose miles or kilometers to convert. When selected (mi/km), prints out the user input and the answer. km to mi = km/1.609 mi to km = mi*1.609 Thank you again! On Mon, Aug 24, 2020 at 1:41 PM Calvin Spealman

Re: Output showing "None" in Terminal

2020-08-24 Thread 2QdxY4RzWzUUiLuE
On 2020-08-24 at 06:12:11 -0700, Py Noob wrote: > 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. > if sel

Re: Output showing "None" in Terminal

2020-08-24 Thread Random832
On Mon, Aug 24, 2020, at 09:12, 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 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. Th

Re: Output showing "None" in Terminal

2020-08-24 Thread Calvin Spealman
How are you actually running your code? "None" is the default return value of all functions in Python. But, the interpreter is supposed to suppress it as a displayed result. As a side note, both your km_mi() function and the line "answer = km_mi" are certainly wrong, but it is not clear what you

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