The print statement has been replaced with a print() function in Python3. Examples:
Old: print "Hello World!!"
New: print("Hello World!!")
Old: print "square of 3 is ", 3*3
New: print("square of 3 is ", 3*3)
Old: print z, # comma suppresses newline
New: print(z, end=" ") # Appends a space instead of a newline
You can also customize the separator between items, e.g.:
print("The cube of 9 is <", 9**3, "> !", sep="")
output:
The cube of 9 is 729!