+ 2

Python strings?

If i use “Hello” it should get ‘Hello’ right? But each time i do so it says No output?

7th Aug 2018, 2:41 PM
Jay See
Jay See - avatar
6 Respostas
0
Please describe your question in more detail. If you want 'Hello' to be displayed to the screen, you have to use the print function like this: print('Hello')
7th Aug 2018, 3:23 PM
giannismach
giannismach - avatar
0
Lucky Luke hi there thanks for the reply! im referring to the Python tutorial for Strings. The tutorial states the following: >>> "Python is fun!" 'Python is fun!' >>> 'Always look on the bright side of life' 'Always look on the bright side of life' but when i try it out, it doesnt seem to work as what they portray
7th Aug 2018, 3:39 PM
Jay See
Jay See - avatar
0
This will be the result if you type the strings in the Python interpreter. There will be no output however when you test it at the Code Playground or a code editor.
7th Aug 2018, 3:51 PM
giannismach
giannismach - avatar
0
Lucky Luke ahh i see so does that mean its like printing if keyed into the Python intepreter?
8th Aug 2018, 3:50 PM
Jay See
Jay See - avatar
0
Jay See Yes, that's the point of it.
8th Aug 2018, 4:56 PM
giannismach
giannismach - avatar
0
>>> " "
7th Jul 2020, 7:26 AM
samiksha