Let's say, I have this code:
#!/bin/env/python2
def hello():
print "hello, you!"
input()
case A) If I execute this, and I type as user input
hello()
I get
hello, you!
case B) If I type
int(2.3)
or any other built-in function, I get nothing, as expected.
case C) If I type
print "hello you!"
I get
Traceback (most recent call last):
File "./test_input.py", line 8, in <module>
input()
File "<string>", line 1
print "hello you!"
^
SyntaxError: invalid syntax
Why do functions work, but the print statement doesn't?