0
I know it may sound foolish but can anyone explain in detail why both the print functions are giving different output?
Code:- x=input("enter x") print(x) print(x)
2 Answers
+ 6
They are giving the same output except that in the first line it's printing 'enter x' and then the value of x and in the second line only the value of x was printed. Visit this link to understand how to do line breaks in Python:
http://stackoverflow.com/questions/53162/how-can-i-do-a-line-break-line-continuation-in-python
0
I just tried your code and I got the same output as expected