Mar-03-2020, 12:57 AM
Thanks for the post.
It isn't quite what I am after but it is an improvement none the less from fives to three lines of code.
Still would like to do it all on one line but if it can't be done then it can't be done.
What exactly is Python complaining about, is it use of variable called 'third' which isn't defined before it is referenced in the one liner print statement?
It isn't quite what I am after but it is an improvement none the less from fives to three lines of code.
Still would like to do it all on one line but if it can't be done then it can't be done.
What exactly is Python complaining about, is it use of variable called 'third' which isn't defined before it is referenced in the one liner print statement?