What is the Python 3 equivalent of the following Python 2 code:
print >> f, "Smarterer", "Tests",
Explanation
This function prints a line 'Smarter Tests' to a file.
But print statement inserts a new line at the end of input line by default. Provided code overrides that by putting a comma character at the end.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Python quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes