Very new to python, trying this –
def newlines():
print()
print()
print()
question = "Which online Course you have signed up, dude?"
response = "Good Luck to you, dude!"
print(question), newlines(), input(), newlines(), print(response)
In Python 3.2.* the output is this
Which online Course you have signed up, dude?
Nothing
Good Luck to you, dude!
(None, None, "Nothing", None) # Where this output is coming from ?
Also this is not happening with python 3.3 beta
You must be at the interactive shell. When I run your code as a file, I get this output:
You only get your output at the console:
This is because the console will print the representation of the last thing you typed in. The last statement is actually a tuple, so it gets printed at the end. Here’s some examples: