Why does
print("Miles per gallon:", mpg)
return this ('Miles per gallon:', 2.0)
instead of Miles per gallon: 2.0
??
It's the console's way of representing a string vs not string
>>54934087
What fucking language
>>54934132
my apologies.. Python
>>54934138
python 3?
works fine on my machine:>>> mpg=2.0
>>> print("Miles per gallon:", mpg)
Miles per gallon: 2.0
>>54934174
I believe I'm running Python 2.7.10
>>54934185
Then get rid of the parentheses. In python2, print is a keyword and is used without parens. So what you're telling the interpreter is to print out a tuple with the members "Miles per gallon" and 2.0, which is exactly what it's doing
[spoiler]Also switch to python3, python2 is dying and there's no reason to learn it except to support legacy code[/spoiler]
>>54934226
excellent. thank you. I will update to 3.5.1 now.