+ 1
Difference between print and this?
I thought you had to use print: to use text, so now that I know the quotes are what make the text possible, I donât really understand what the purpose of âprint:â is
3 Answers
+ 4
The print() function is used to display objects (e.g. text) to the console.
print("Hello world!")
You'll see the phrase Hello world! as output in the console.
+ 3
I think print is the short term for printscreen. It displays the results on your screen.
+ 2
If you just write a string (for example 'Hello World') into a file and run that, nothing will happen. You have to explicitly use print() to achieve screen output.
Just writing the string alone works only in interactive mode when you feed code line by line to the interpreter.