Print statement to print on one line in PYTHON 3.6


#1


print 'X' , :- this statement to print 'X' on one line
what is the statement in PYTHON 3.6 for the same ??


Replace this line with your code.


#2

In Python 3.6 ...

print('X')

print has become a function in Python 3.x.


#3

in python3 you need to use parentheses for print:

print('X')

#4

comma is there to print the char X in same line(not change line)
I m asking WHAT IS PRINT STATEMENT IN PYHTON 3.6


#5


comma is there to print the char X in same line(not change line)
I m asking WHAT IS PRINT STATEMENT IN PYHTON 3.6


#6

well, then leave the comma in place but do use parentheses.

and it seems you need to use end in python3, see this stackoverflow question


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.