So we get some more results here, and I don't know,
let's look at this second one here, why is parenthesis voluntary in Python 2.7?
So again, we've got a response here, it says why is parenthesis voluntary.
If you read the question it says well, in Python 2 we can say print,
open parenthesis, Hello, world, and it prints out Hello, world.
We can also say print with no parenthesis around it and we get hello, world.
However, if we do this in Python 2, we come back
out with parenthesis around Hello world, in this case we just get Hello world.
And so we can kind of read down to some of the answers to the question here, and
the first one says something interesting.
It says in Python 2, print is actually a statement and not a function, so
that's probably one of the most important things in Python 2, print's a statement,
so we don't need parentheses.
In Python 3, it's a function so we do need parentheses.
It still didn't really answer that first question up there in terms of
why is this behavior the way it is?
We could go down here it says,
it has some interesting side effects here and we have well,
looks like a very complicated answer here that I don't even parse that well.
Let's look at the third one down here it says, let's see, basically Python 3,
apparently it was a special statement to print all the strings of arguments, so
it's very interesting here.
It says that the grammar is ambiguous, so what that means is when you go up here and
you say something like print parenthesis around Hello world.
The way that a parenthesis around an expression is interpreted is that it
just evaluates the expression inside, except if it's a tuple.
If it's a tuple, where there's basically things separated by commas,
then it actually retains the parenthesis, so
that's really the thing that gave rise to these two different examples here.
And we know this question is not that critical, but
the thing I want to point you to here is that this site that we just looked at
here was the same site that we looked at the last one.
And the same site that dominated the search results for
both of these questions.
And that's Stack Overflow, so
let's take a little bit of a longer look at Stack Overflow next.